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 b4670341a9..cfbb859676 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,12 +31,9 @@ public class InsetsHelper // 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); - } + ViewGroup.LayoutParams lpWorkaround = workaroundView.getLayoutParams(); + lpWorkaround.height = bottomInset; + workaroundView.setLayoutParams(lpWorkaround); } public static int getSystemGestureType(Context context) diff --git a/Source/Android/app/src/main/res/layout/activity_cheats.xml b/Source/Android/app/src/main/res/layout/activity_cheats.xml index c2212d5602..f8be839551 100644 --- a/Source/Android/app/src/main/res/layout/activity_cheats.xml +++ b/Source/Android/app/src/main/res/layout/activity_cheats.xml @@ -2,6 +2,7 @@ @@ -45,20 +46,26 @@ android:id="@+id/cheat_list" android:name="org.dolphinemu.dolphinemu.features.cheats.ui.CheatListFragment" android:layout_width="match_parent" - android:layout_height="match_parent" /> + android:layout_height="match_parent" + tools:layout="@layout/fragment_cheat_list" /> + android:layout_height="match_parent" + tools:layout="@layout/fragment_cheat_details" /> + @@ -14,7 +15,8 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent" - app:layout_constraintBottom_toTopOf="@id/gfx_mods_warning" /> + app:layout_constraintBottom_toTopOf="@id/gfx_mods_warning" + tools:layout="@layout/fragment_cheat_warning" /> + app:layout_constraintBottom_toTopOf="@id/cheat_list" + tools:layout="@layout/fragment_cheat_warning" />