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