diff options
| author | 2023-03-24 04:21:09 -0400 | |
|---|---|---|
| committer | 2023-06-03 00:05:47 -0700 | |
| commit | 5807cf1b4ddc9d2b5a7d1db1178555181c00ad89 (patch) | |
| tree | 3aa11d28629d0b14abc14c8bb9862fdbd406ce08 /src/android/app | |
| parent | android: Use autofit grid for games fragment (diff) | |
| download | yuzu-5807cf1b4ddc9d2b5a7d1db1178555181c00ad89.tar.gz yuzu-5807cf1b4ddc9d2b5a7d1db1178555181c00ad89.tar.xz yuzu-5807cf1b4ddc9d2b5a7d1db1178555181c00ad89.zip | |
android: Fix popup menu going out of bounds
Diffstat (limited to 'src/android/app')
| -rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt | 2 | ||||
| -rw-r--r-- | src/android/app/src/main/res/layout/header_in_game.xml | 29 |
2 files changed, 11 insertions, 20 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt index 0da7562a6..2fd0d38fa 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt | |||
| @@ -96,7 +96,7 @@ open class EmulationActivity : AppCompatActivity() { | |||
| 96 | window.attributes.layoutInDisplayCutoutMode = | 96 | window.attributes.layoutInDisplayCutoutMode = |
| 97 | WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES | 97 | WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES |
| 98 | 98 | ||
| 99 | window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN or WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS) | 99 | window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN) |
| 100 | 100 | ||
| 101 | // It would be nice to use IMMERSIVE_STICKY, but that doesn't show the toolbar. | 101 | // It would be nice to use IMMERSIVE_STICKY, but that doesn't show the toolbar. |
| 102 | window.decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_LAYOUT_STABLE or | 102 | window.decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_LAYOUT_STABLE or |
diff --git a/src/android/app/src/main/res/layout/header_in_game.xml b/src/android/app/src/main/res/layout/header_in_game.xml index 135d429c5..958cfb7e3 100644 --- a/src/android/app/src/main/res/layout/header_in_game.xml +++ b/src/android/app/src/main/res/layout/header_in_game.xml | |||
| @@ -1,23 +1,14 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <androidx.constraintlayout.widget.ConstraintLayout | 2 | <com.google.android.material.textview.MaterialTextView |
| 3 | xmlns:android="http://schemas.android.com/apk/res/android" | 3 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 4 | xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| 5 | xmlns:tools="http://schemas.android.com/tools" | 4 | xmlns:tools="http://schemas.android.com/tools" |
| 5 | android:id="@+id/text_game_title" | ||
| 6 | android:layout_width="match_parent" | 6 | android:layout_width="match_parent" |
| 7 | android:layout_height="match_parent" | 7 | android:layout_height="wrap_content" |
| 8 | android:fitsSystemWindows="true"> | 8 | android:layout_marginTop="24dp" |
| 9 | 9 | android:layout_marginStart="24dp" | |
| 10 | <com.google.android.material.textview.MaterialTextView | 10 | android:layout_marginEnd="24dp" |
| 11 | android:id="@+id/text_game_title" | 11 | android:textAppearance="?attr/textAppearanceHeadlineMedium" |
| 12 | android:layout_width="0dp" | 12 | android:textColor="?attr/colorOnSurface" |
| 13 | android:layout_height="wrap_content" | 13 | android:textAlignment="viewStart" |
| 14 | android:layout_margin="24dp" | 14 | tools:text="Super Mario Odyssey" /> |
| 15 | android:textAppearance="?attr/textAppearanceHeadlineMedium" | ||
| 16 | android:textColor="?attr/colorOnSurface" | ||
| 17 | android:textAlignment="viewStart" | ||
| 18 | app:layout_constraintEnd_toEndOf="parent" | ||
| 19 | app:layout_constraintStart_toStartOf="parent" | ||
| 20 | app:layout_constraintTop_toTopOf="parent" | ||
| 21 | tools:text="Super Mario Odyssey" /> | ||
| 22 | |||
| 23 | </androidx.constraintlayout.widget.ConstraintLayout> | ||