mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-31 00:32:53 +00:00
Merge pull request #11428 from t895/cheats-fix-2
Android: Ignore workaround view height if 0
This commit is contained in:
commit
4b6d6883f8
@ -31,9 +31,12 @@ public class InsetsHelper
|
|||||||
// navigation bar https://issuetracker.google.com/issues/248761842
|
// navigation bar https://issuetracker.google.com/issues/248761842
|
||||||
public static void applyNavbarWorkaround(int bottomInset, View workaroundView)
|
public static void applyNavbarWorkaround(int bottomInset, View workaroundView)
|
||||||
{
|
{
|
||||||
ViewGroup.LayoutParams lpWorkaround = workaroundView.getLayoutParams();
|
if (bottomInset > 0)
|
||||||
lpWorkaround.height = bottomInset;
|
{
|
||||||
workaroundView.setLayoutParams(lpWorkaround);
|
ViewGroup.LayoutParams lpWorkaround = workaroundView.getLayoutParams();
|
||||||
|
lpWorkaround.height = bottomInset;
|
||||||
|
workaroundView.setLayoutParams(lpWorkaround);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int getSystemGestureType(Context context)
|
public static int getSystemGestureType(Context context)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user