mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #11428 from t895/cheats-fix-2
Android: Ignore workaround view height if 0
This commit is contained in:
commit
4b6d6883f8
@ -30,11 +30,14 @@ public class InsetsHelper
|
||||
// Workaround for a bug on Android 13 that allows users to interact with UI behind the
|
||||
// navigation bar https://issuetracker.google.com/issues/248761842
|
||||
public static void applyNavbarWorkaround(int bottomInset, View workaroundView)
|
||||
{
|
||||
if (bottomInset > 0)
|
||||
{
|
||||
ViewGroup.LayoutParams lpWorkaround = workaroundView.getLayoutParams();
|
||||
lpWorkaround.height = bottomInset;
|
||||
workaroundView.setLayoutParams(lpWorkaround);
|
||||
}
|
||||
}
|
||||
|
||||
public static int getSystemGestureType(Context context)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user