mirror of
https://github.com/LittleTurtle2333/SimplicityTools.git
synced 2026-07-12 19:31:17 +08:00
新增 未激活状态强制对话框
This commit is contained in:
@@ -43,7 +43,12 @@ class SettingsActivity : AppCompatActivity() {
|
||||
} catch (exception: SecurityException) {
|
||||
AlertDialog.Builder(this)
|
||||
.setMessage("您似乎正在使用过时的 LSPosed 版本或 LSPosed 未激活,请更新 LSPosed 或者激活后再试。")
|
||||
.setCancelable(false)
|
||||
.setPositiveButton("确定", DialogInterface.OnClickListener { dialogInterface, i ->
|
||||
android.os.Process.killProcess(android.os.Process.myPid())
|
||||
})
|
||||
.show()
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user