mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-08 21:53:31 +01:00
Android: Ignore workaround view height if 0
This commit is contained in:
parent
558e3b5b15
commit
6b97b64e93
@ -30,11 +30,14 @@ public class InsetsHelper
|
|||||||
// Workaround for a bug on Android 13 that allows users to interact with UI behind the
|
// Workaround for a bug on Android 13 that allows users to interact with UI behind the
|
||||||
// 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)
|
||||||
|
{
|
||||||
|
if (bottomInset > 0)
|
||||||
{
|
{
|
||||||
ViewGroup.LayoutParams lpWorkaround = workaroundView.getLayoutParams();
|
ViewGroup.LayoutParams lpWorkaround = workaroundView.getLayoutParams();
|
||||||
lpWorkaround.height = bottomInset;
|
lpWorkaround.height = bottomInset;
|
||||||
workaroundView.setLayoutParams(lpWorkaround);
|
workaroundView.setLayoutParams(lpWorkaround);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static int getSystemGestureType(Context context)
|
public static int getSystemGestureType(Context context)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user