changing orientation modes

This commit is contained in:
Sir-Photch 2023-02-03 22:20:24 +01:00
parent 10d027951d
commit 75bb7eceac

View File

@ -136,9 +136,9 @@ abstract class SharedLauncherActivity(
viewModel.fixedRotation.observe(this) { fixedRotation -> viewModel.fixedRotation.observe(this) { fixedRotation ->
requestedOrientation = if (fixedRotation) { requestedOrientation = if (fixedRotation) {
ActivityInfo.SCREEN_ORIENTATION_PORTRAIT + ActivityInfo.SCREEN_ORIENTATION_NOSENSOR ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
} else { } else {
ActivityInfo.SCREEN_ORIENTATION_SENSOR ActivityInfo.SCREEN_ORIENTATION_USER
} }
} }