summaryrefslogtreecommitdiff
path: root/Source/Android/app
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Android/app')
-rw-r--r--Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/InsetsHelper.java9
-rw-r--r--Source/Android/app/src/main/res/layout/activity_cheats.xml6
2 files changed, 8 insertions, 7 deletions
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 030e8f3581..f8be839551 100644
--- a/Source/Android/app/src/main/res/layout/activity_cheats.xml
+++ b/Source/Android/app/src/main/res/layout/activity_cheats.xml
@@ -58,10 +58,14 @@
</androidx.slidingpanelayout.widget.SlidingPaneLayout>
+ <!-- We have to set the layout height at 1px because when a device forces fullscreen mode,
+ inset callbacks are not triggered and using 0dp will make this view cover the entire
+ display since this activity uses a constraint layout. Now, even if the callback isn't
+ triggered, this view will remain at 1px height. -->
<View
android:id="@+id/workaround_view"
android:layout_width="match_parent"
- android:layout_height="0dp"
+ android:layout_height="1px"
android:layout_gravity="bottom"
android:background="@android:color/transparent"
android:clickable="true"