diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-06-09 03:53:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-09 03:53:51 +0200 |
commit | a57150afbd3beba28b51aa6814b959b763a204e4 (patch) | |
tree | 26d015f335e379961b366a1aa01c8757976f1c78 | |
parent | Merge pull request #10677 from tokarevart/fix-warning (diff) | |
parent | android: EmulationActivity: Fix orientation on Mi Pad 5. (diff) | |
download | yuzu-a57150afbd3beba28b51aa6814b959b763a204e4.tar yuzu-a57150afbd3beba28b51aa6814b959b763a204e4.tar.gz yuzu-a57150afbd3beba28b51aa6814b959b763a204e4.tar.bz2 yuzu-a57150afbd3beba28b51aa6814b959b763a204e4.tar.lz yuzu-a57150afbd3beba28b51aa6814b959b763a204e4.tar.xz yuzu-a57150afbd3beba28b51aa6814b959b763a204e4.tar.zst yuzu-a57150afbd3beba28b51aa6814b959b763a204e4.zip |
-rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt | 3 |
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 { val config: Configuration = resources.configuration if ((config.screenLayout and Configuration.SCREENLAYOUT_LONG_YES) != 0 || - (config.screenLayout and Configuration.SCREENLAYOUT_LONG_NO) == 0) { + (config.screenLayout and Configuration.SCREENLAYOUT_LONG_NO) == 0 || + (config.screenLayout and Configuration.SCREENLAYOUT_SIZE_SMALL) != 0) { return rotation } when (rotation) { |