Skip to content

Commit 28aad87

Browse files
committed
feat: Move safeguards above patcher preference group
1 parent 9f44541 commit 28aad87

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

app/src/main/java/app/revanced/manager/ui/screen/settings/AdvancedSettingsScreen.kt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -112,20 +112,6 @@ fun AdvancedSettingsScreen(
112112
}
113113
)
114114

115-
GroupHeader(stringResource(R.string.patcher))
116-
BooleanItem(
117-
preference = vm.prefs.useProcessRuntime,
118-
coroutineScope = vm.viewModelScope,
119-
headline = R.string.process_runtime,
120-
description = R.string.process_runtime_description,
121-
)
122-
IntegerItem(
123-
preference = vm.prefs.patcherProcessMemoryLimit,
124-
coroutineScope = vm.viewModelScope,
125-
headline = R.string.process_runtime_memory_limit,
126-
description = R.string.process_runtime_memory_limit_description,
127-
)
128-
129115
GroupHeader(stringResource(R.string.safeguards))
130116
SafeguardBooleanItem(
131117
preference = vm.prefs.disablePatchVersionCompatCheck,
@@ -156,6 +142,20 @@ fun AdvancedSettingsScreen(
156142
confirmationText = R.string.patch_selection_safeguard_confirmation
157143
)
158144

145+
GroupHeader(stringResource(R.string.patcher))
146+
BooleanItem(
147+
preference = vm.prefs.useProcessRuntime,
148+
coroutineScope = vm.viewModelScope,
149+
headline = R.string.process_runtime,
150+
description = R.string.process_runtime_description,
151+
)
152+
IntegerItem(
153+
preference = vm.prefs.patcherProcessMemoryLimit,
154+
coroutineScope = vm.viewModelScope,
155+
headline = R.string.process_runtime_memory_limit,
156+
description = R.string.process_runtime_memory_limit_description,
157+
)
158+
159159
GroupHeader(stringResource(R.string.debugging))
160160
val exportDebugLogsLauncher =
161161
rememberLauncherForActivityResult(ActivityResultContracts.CreateDocument("text/plain")) {

0 commit comments

Comments
 (0)