Skip to content

Commit ef52002

Browse files
committed
upgrading the insets calculations
1 parent a6ae44c commit ef52002

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

android/src/main/java/com/reactnativenavigation/viewcontrollers/bottomtabs/BottomTabsController.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,8 @@ protected WindowInsetsCompat onApplyWindowInsets(View view, WindowInsetsCompat i
319319
Insets sysInsets = insets.getInsets(WindowInsetsCompat.Type.systemBars());
320320
Insets imeInsets = insets.getInsets(WindowInsetsCompat.Type.ime());
321321

322-
int bottomInset = (imeInsets.bottom > 0) ? 0 : sysInsets.bottom;
322+
final boolean hideBottomInset = resolveCurrentOptions().bottomTabsOptions.isHiddenOrDrawBehind();
323+
int bottomInset = (imeInsets.bottom > 0 || hideBottomInset) ? 0 : sysInsets.bottom;
323324
view.setPaddingRelative(0, 0, 0, bottomInset);
324325
return insets;
325326
}

0 commit comments

Comments
 (0)