diff --git a/app/apk/src/main/java/com/topjohnwu/magisk/ui/flash/FlashFragment.kt b/app/apk/src/main/java/com/topjohnwu/magisk/ui/flash/FlashFragment.kt index b2e8cb8dd46e..7231a9b9fda3 100644 --- a/app/apk/src/main/java/com/topjohnwu/magisk/ui/flash/FlashFragment.kt +++ b/app/apk/src/main/java/com/topjohnwu/magisk/ui/flash/FlashFragment.kt @@ -71,7 +71,7 @@ class FlashFragment : BaseFragment(), MenuProvider { super.onViewCreated(view, savedInstanceState) defaultOrientation = activity?.requestedOrientation ?: -1 - activity?.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_NOSENSOR + activity?.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_LOCKED if (savedInstanceState == null) { viewModel.startFlashing() } diff --git a/app/apk/src/main/java/com/topjohnwu/magisk/ui/module/ActionFragment.kt b/app/apk/src/main/java/com/topjohnwu/magisk/ui/module/ActionFragment.kt index 2c80954b1e30..a8c4a4994393 100644 --- a/app/apk/src/main/java/com/topjohnwu/magisk/ui/module/ActionFragment.kt +++ b/app/apk/src/main/java/com/topjohnwu/magisk/ui/module/ActionFragment.kt @@ -85,7 +85,7 @@ class ActionFragment : BaseFragment(), MenuProvider { super.onViewCreated(view, savedInstanceState) defaultOrientation = activity?.requestedOrientation ?: -1 - activity?.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_NOSENSOR + activity?.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_LOCKED if (savedInstanceState == null) { viewModel.startRunAction() }