diff options
| author | JosJuice <josjuice@gmail.com> | 2023-01-10 18:57:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-10 18:57:14 +0100 |
| commit | 4b6d6883f8adad047f9222534a09ca6047254551 (patch) | |
| tree | 7549754218f2a987184c6b6a70bf331c2f4e145e /Source/Android/app/src/main/java/org | |
| parent | 558e3b5b15ceaedc1cb961c62d6fa5bf2a59fc4c (diff) | |
| parent | 6b97b64e93cb7826a8c875a6941d25a426f791f5 (diff) | |
Merge pull request #11428 from t895/cheats-fix-2
Android: Ignore workaround view height if 0
Diffstat (limited to 'Source/Android/app/src/main/java/org')
| -rw-r--r-- | Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/InsetsHelper.java | 9 |
1 files 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) |
