changing orientation modes
This commit is contained in:
parent
10d027951d
commit
75bb7eceac
@ -136,9 +136,9 @@ abstract class SharedLauncherActivity(
|
||||
|
||||
viewModel.fixedRotation.observe(this) { fixedRotation ->
|
||||
requestedOrientation = if (fixedRotation) {
|
||||
ActivityInfo.SCREEN_ORIENTATION_PORTRAIT + ActivityInfo.SCREEN_ORIENTATION_NOSENSOR
|
||||
ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
|
||||
} else {
|
||||
ActivityInfo.SCREEN_ORIENTATION_SENSOR
|
||||
ActivityInfo.SCREEN_ORIENTATION_USER
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user