mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-06-05 21:59:19 +02:00
moving the forcePortrait config in the app itself, from Commons
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user