From fae1fd9826f367a99f7fb715ef2a4dc5eeb87cd4 Mon Sep 17 00:00:00 2001 From: weishu Date: Tue, 24 Oct 2023 10:57:03 +0800 Subject: [PATCH] manager: make system and shell group conspicuously --- .../kernelsu/ui/component/profile/RootProfileConfig.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/manager/app/src/main/java/me/weishu/kernelsu/ui/component/profile/RootProfileConfig.kt b/manager/app/src/main/java/me/weishu/kernelsu/ui/component/profile/RootProfileConfig.kt index 79a1b1c2..803d33df 100644 --- a/manager/app/src/main/java/me/weishu/kernelsu/ui/component/profile/RootProfileConfig.kt +++ b/manager/app/src/main/java/me/weishu/kernelsu/ui/component/profile/RootProfileConfig.kt @@ -192,7 +192,12 @@ fun GroupsPanel(selected: List, closeSelection: (selection: Set) if (showDialog) { val groups = Groups.values().sortedWith(compareBy { - it != Groups.ROOT + when (it) { + Groups.ROOT -> 0 + Groups.SYSTEM -> 1 + Groups.SHELL -> 2 + else -> Int.MAX_VALUE + } }.then(compareBy { it.name })) val options = groups.map { value -> ListOption(