mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-13 05:25:14 +01:00
Update EmulationFragment.kt
This commit is contained in:
parent
d6723c6689
commit
1b4e8ff1bd
@ -422,7 +422,7 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback, Choreographer.Fram
|
||||
private fun rotateScreen() {
|
||||
if (resources.configuration.orientation == Configuration.ORIENTATION_PORTRAIT) {
|
||||
(context as? EmulationActivity)?.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE
|
||||
} else if (resources.configuration.orientation == Configuration.ORIENTATION_LANDSPACE) {
|
||||
} else if (resources.configuration.orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
||||
(context as? EmulationActivity)?.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
|
||||
} else {
|
||||
(context as? EmulationActivity)?.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED
|
||||
|
Loading…
Reference in New Issue
Block a user