mirror of
https://github.com/KitsunePie/AppErrorsTracking.git
synced 2025-09-04 02:05:16 +08:00
Added fast restart problem dialog in FrameworkTool
This commit is contained in:
@@ -205,9 +205,16 @@ object FrameworkTool {
|
|||||||
else context.snake(LocaleString.accessRootFail)
|
else context.snake(LocaleString.accessRootFail)
|
||||||
}
|
}
|
||||||
neutralButton(LocaleString.fastRestart) {
|
neutralButton(LocaleString.fastRestart) {
|
||||||
if (isRootAccess)
|
context.showDialog {
|
||||||
execShell(cmd = "killall zygote")
|
title = LocaleString.warning
|
||||||
else context.snake(LocaleString.accessRootFail)
|
msg = LocaleString.fastRestartProblem
|
||||||
|
confirmButton {
|
||||||
|
if (isRootAccess)
|
||||||
|
execShell(cmd = "killall zygote")
|
||||||
|
else context.snake(LocaleString.accessRootFail)
|
||||||
|
}
|
||||||
|
cancelButton()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
cancelButton()
|
cancelButton()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user