Update EmulationFragment.kt

This commit is contained in:
Gamer64ytb 2024-04-21 13:16:26 +02:00
parent d6723c6689
commit 1b4e8ff1bd

View File

@ -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