Browse Source
Merge pull request #10676 from bunnei/fix-mi-5-android
android: EmulationActivity: Fix orientation on Mi Pad 5.
pull/15/merge
liamwhite
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
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) { |
|
|
|
|