summaryrefslogtreecommitdiff
path: root/src/android
diff options
context:
space:
mode:
authorGravatar bunnei2023-06-08 17:20:13 -0700
committerGravatar bunnei2023-06-08 17:20:13 -0700
commit064bad6ddf898ce915f5bd66af0f6a1edd2ff93a (patch)
tree4024d35ad5df210978fa4f2fba52ff1653ce478f /src/android
parentMerge pull request #10650 from qurious-pixel/android_tv (diff)
downloadyuzu-064bad6ddf898ce915f5bd66af0f6a1edd2ff93a.tar.gz
yuzu-064bad6ddf898ce915f5bd66af0f6a1edd2ff93a.tar.xz
yuzu-064bad6ddf898ce915f5bd66af0f6a1edd2ff93a.zip
android: EmulationActivity: Fix orientation on Mi Pad 5.
Diffstat (limited to 'src/android')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt3
1 files changed, 2 insertions, 1 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 94d5156cf..f4db61cb3 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
@@ -263,7 +263,8 @@ class EmulationActivity : AppCompatActivity(), SensorEventListener {
263 val config: Configuration = resources.configuration 263 val config: Configuration = resources.configuration
264 264
265 if ((config.screenLayout and Configuration.SCREENLAYOUT_LONG_YES) != 0 || 265 if ((config.screenLayout and Configuration.SCREENLAYOUT_LONG_YES) != 0 ||
266 (config.screenLayout and Configuration.SCREENLAYOUT_LONG_NO) == 0) { 266 (config.screenLayout and Configuration.SCREENLAYOUT_LONG_NO) == 0 ||
267 (config.screenLayout and Configuration.SCREENLAYOUT_SIZE_SMALL) != 0) {
267 return rotation 268 return rotation
268 } 269 }
269 when (rotation) { 270 when (rotation) {