Skip to content

Commit 32a13f4

Browse files
committed
fmt
1 parent 1ce67f4 commit 32a13f4

File tree

1 file changed

+10
-7
lines changed
  • android/src/main/java/com/capacitorjs/plugins/keyboard

1 file changed

+10
-7
lines changed

android/src/main/java/com/capacitorjs/plugins/keyboard/Keyboard.java

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,18 @@ public Keyboard(AppCompatActivity activity, boolean resizeOnFullScreen) {
5757
FrameLayout content = activity.getWindow().getDecorView().findViewById(android.R.id.content);
5858
rootView = content.getRootView();
5959

60-
ViewCompat.setOnApplyWindowInsetsListener(rootView, (v, insets) -> {
61-
boolean showingKeyboard = ViewCompat.getRootWindowInsets(rootView).isVisible(WindowInsetsCompat.Type.ime());
60+
ViewCompat.setOnApplyWindowInsetsListener(
61+
rootView,
62+
(v, insets) -> {
63+
boolean showingKeyboard = ViewCompat.getRootWindowInsets(rootView).isVisible(WindowInsetsCompat.Type.ime());
6264

63-
if (showingKeyboard && resizeOnFullScreen) {
64-
possiblyResizeChildOfContent(true);
65-
}
65+
if (showingKeyboard && resizeOnFullScreen) {
66+
possiblyResizeChildOfContent(true);
67+
}
6668

67-
return insets;
68-
});
69+
return insets;
70+
}
71+
);
6972

7073
ViewCompat.setWindowInsetsAnimationCallback(
7174
rootView,

0 commit comments

Comments
 (0)