mirror of
https://github.com/LittleTurtle2333/SimplicityTools.git
synced 2026-07-12 19:31:17 +08:00
更新版本号至1.2.1
更新上游blockmiui,修复重启菜单显示异常
This commit is contained in:
@@ -12,8 +12,8 @@ android {
|
|||||||
applicationId = "com.lt2333.simplicitytools"
|
applicationId = "com.lt2333.simplicitytools"
|
||||||
minSdk = 31
|
minSdk = 31
|
||||||
targetSdk = 32
|
targetSdk = 32
|
||||||
versionCode = 21
|
versionCode = 22
|
||||||
versionName = "1.2.0"
|
versionName = "1.2.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
|||||||
@@ -407,42 +407,50 @@ class SettingsActivity : MIUIActivity() {
|
|||||||
|
|
||||||
override fun menuItems(): ArrayList<BaseView> {
|
override fun menuItems(): ArrayList<BaseView> {
|
||||||
return ArrayList<BaseView>().apply {
|
return ArrayList<BaseView>().apply {
|
||||||
add(TextSummaryV(textId = R.string.reboot, onClickListener = {
|
add(
|
||||||
MIUIDialog(activity).apply {
|
TextSummaryArrowV(
|
||||||
setTitle(R.string.Tips)
|
TextSummaryV(textId = R.string.reboot, onClickListener = {
|
||||||
setMessage("确定重启系统?")
|
MIUIDialog(activity).apply {
|
||||||
setLButton("取消") {
|
setTitle(R.string.Tips)
|
||||||
dismiss()
|
setMessage("确定重启系统?")
|
||||||
}
|
setLButton("取消") {
|
||||||
setRButton("确定") {
|
dismiss()
|
||||||
val command = arrayOf("reboot")
|
}
|
||||||
ShellUtils.execCommand(command, true)
|
setRButton("确定") {
|
||||||
dismiss()
|
val command = arrayOf("reboot")
|
||||||
}
|
ShellUtils.execCommand(command, true)
|
||||||
show()
|
dismiss()
|
||||||
}
|
}
|
||||||
}))
|
show()
|
||||||
add(TextSummaryV(textId = R.string.reboot_host, onClickListener = {
|
}
|
||||||
MIUIDialog(activity).apply {
|
})
|
||||||
setTitle(R.string.Tips)
|
)
|
||||||
setMessage("确定重启作用域?")
|
)
|
||||||
setLButton("取消") {
|
add(
|
||||||
dismiss()
|
TextSummaryArrowV(
|
||||||
}
|
TextSummaryV(textId = R.string.reboot_host, onClickListener = {
|
||||||
setRButton("确定") {
|
MIUIDialog(activity).apply {
|
||||||
val command = arrayOf(
|
setTitle(R.string.Tips)
|
||||||
"killall com.miui.home",
|
setMessage("确定重启作用域?")
|
||||||
"killall com.miui.securitycenter ",
|
setLButton("取消") {
|
||||||
"killall com.miui.powerkeeper",
|
dismiss()
|
||||||
"killall com.miui.mediaeditor",
|
}
|
||||||
"killall com.android.systemui"
|
setRButton("确定") {
|
||||||
)
|
val command = arrayOf(
|
||||||
ShellUtils.execCommand(command, true)
|
"killall com.miui.home",
|
||||||
dismiss()
|
"killall com.miui.securitycenter ",
|
||||||
}
|
"killall com.miui.powerkeeper",
|
||||||
show()
|
"killall com.miui.mediaeditor",
|
||||||
}
|
"killall com.android.systemui"
|
||||||
}))
|
)
|
||||||
|
ShellUtils.execCommand(command, true)
|
||||||
|
dismiss()
|
||||||
|
}
|
||||||
|
show()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Submodule blockmiui updated: fc5dbedeb8...ccbbe65867
Reference in New Issue
Block a user