Skip to content

Commit

Permalink
passing keyboard state to possiblyResizeChildOfContent
Browse files Browse the repository at this point in the history
  • Loading branch information
theproducer committed Jan 18, 2024
1 parent 948d4e0 commit e07291d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public WindowInsetsAnimationCompat.BoundsCompat onStart(
final float density = dm.density;

if (resizeOnFullScreen) {
possiblyResizeChildOfContent(true);
possiblyResizeChildOfContent(showingKeyboard);
}

if (showingKeyboard) {
Expand Down Expand Up @@ -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
);
}
}

0 comments on commit e07291d

Please sign in to comment.