mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-22 18:55:39 +01:00
Merge pull request #10676 from bunnei/fix-mi-5-android
android: EmulationActivity: Fix orientation on Mi Pad 5.
This commit is contained in:
commit
a57150afbd
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user