fix kernel mode switch not work (#196)
This commit is contained in:
parent
04f22cb92d
commit
632da245ab
|
@ -182,8 +182,12 @@ constructor(
|
|||
try {
|
||||
rootShell.start()
|
||||
Timber.i("Root shell accepted!")
|
||||
saveKernelMode(on = true)
|
||||
saveAmneziaMode(false)
|
||||
saveSettings(
|
||||
uiState.value.settings.copy(
|
||||
isKernelEnabled = true,
|
||||
isAmneziaEnabled = false,
|
||||
),
|
||||
)
|
||||
|
||||
} catch (e: RootShell.RootShellException) {
|
||||
Timber.e(e)
|
||||
|
|
Loading…
Reference in New Issue