From ae9596d2235ebe529b6b69a2c551aaaf9a06d169 Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Fri, 11 Oct 2024 03:09:32 +0800 Subject: [PATCH] ui: fix lock screen orientation --- .../main/java/com/topjohnwu/magisk/ui/flash/FlashFragment.kt | 2 +- .../main/java/com/topjohnwu/magisk/ui/module/ActionFragment.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() }