Skip to content
Permalink
Browse files
Merge pull request #11428 from t895/cheats-fix-2
Android: Ignore workaround view height if 0
  • Loading branch information
JosJuice committed Jan 10, 2023
2 parents 558e3b5 + 6b97b64 commit 4b6d688
Showing 1 changed file with 6 additions and 3 deletions.
@@ -31,9 +31,12 @@ public static void insetAppBar(Insets insets, AppBarLayout appBarLayout)
// 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)

0 comments on commit 4b6d688

Please sign in to comment.