From 6b97b64e93cb7826a8c875a6941d25a426f791f5 Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Tue, 10 Jan 2023 12:01:54 -0500 Subject: [PATCH] Android: Ignore workaround view height if 0 --- .../org/dolphinemu/dolphinemu/utils/InsetsHelper.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/InsetsHelper.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/InsetsHelper.java index cfbb859676..b4670341a9 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/InsetsHelper.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/InsetsHelper.java @@ -31,9 +31,12 @@ public class InsetsHelper // navigation bar https://issuetracker.google.com/issues/248761842 public static void applyNavbarWorkaround(int bottomInset, View workaroundView) { - ViewGroup.LayoutParams lpWorkaround = workaroundView.getLayoutParams(); - lpWorkaround.height = bottomInset; - workaroundView.setLayoutParams(lpWorkaround); + if (bottomInset > 0) + { + ViewGroup.LayoutParams lpWorkaround = workaroundView.getLayoutParams(); + lpWorkaround.height = bottomInset; + workaroundView.setLayoutParams(lpWorkaround); + } } public static int getSystemGestureType(Context context)