diff --git a/app/src/main/java/org/meowcat/edxposed/manager/BaseActivity.java b/app/src/main/java/org/meowcat/edxposed/manager/BaseActivity.java index 8bd82a49..4da5c9aa 100644 --- a/app/src/main/java/org/meowcat/edxposed/manager/BaseActivity.java +++ b/app/src/main/java/org/meowcat/edxposed/manager/BaseActivity.java @@ -108,10 +108,10 @@ public class BaseActivity extends AppCompatActivity { protected void setupWindowInsets(View rootView, View secondView) { rootView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION); ViewCompat.setOnApplyWindowInsetsListener(rootView, (v, insets) -> { - if (secondView != null && insets.getTappableElementInsets().bottom != insets.getSystemWindowInsetBottom()) { + if (secondView != null) { secondView.setPadding(0, 0, 0, insets.getSystemWindowInsetBottom()); } - rootView.setPadding(insets.getSystemWindowInsetLeft(), insets.getSystemWindowInsetTop(), insets.getSystemWindowInsetRight(), insets.getTappableElementInsets().bottom); + rootView.setPadding(insets.getSystemWindowInsetLeft(), insets.getSystemWindowInsetTop(), insets.getSystemWindowInsetRight(), secondView == null ? insets.getSystemWindowInsetBottom() : 0); return insets; }); }