moving the forcePortrait config in the app itself, from Commons

This commit is contained in:
tibbi
2018-10-05 20:39:48 +02:00
parent 10be4e2b88
commit aa6c464321
5 changed files with 9 additions and 9 deletions

View File

@ -71,9 +71,7 @@ class MainActivity : SimpleActivity() {
changeIconColor(config.backgroundColor.getContrastColor(), stroboscope_btn)
}
if (config.forcePortrait) {
requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
}
requestedOrientation = if (config.forcePortraitMode) ActivityInfo.SCREEN_ORIENTATION_PORTRAIT else ActivityInfo.SCREEN_ORIENTATION_SENSOR
}
override fun onStart() {