diff --git a/keyboard/android/src/main/java/com/capacitorjs/plugins/keyboard/Keyboard.java b/keyboard/android/src/main/java/com/capacitorjs/plugins/keyboard/Keyboard.java index 67ff4af42..ea9a7fd16 100644 --- a/keyboard/android/src/main/java/com/capacitorjs/plugins/keyboard/Keyboard.java +++ b/keyboard/android/src/main/java/com/capacitorjs/plugins/keyboard/Keyboard.java @@ -71,7 +71,7 @@ public WindowInsetsAnimationCompat.BoundsCompat onStart( final float density = dm.density; if (resizeOnFullScreen) { - possiblyResizeChildOfContent(true); + possiblyResizeChildOfContent(showingKeyboard); } if (showingKeyboard) { @@ -138,8 +138,7 @@ private int computeUsableHeight() { private boolean isOverlays() { final Window window = activity.getWindow(); return ( - (window.getDecorView().getSystemUiVisibility() & View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN) == - View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN + (window.getDecorView().getSystemUiVisibility() & View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN) == View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN ); } }