mirror of
https://github.com/LittleTurtle2333/SimplicityTools.git
synced 2026-07-14 04:11:17 +08:00
新增:电量与性能:阻止杀后台应用 (#186)
* 新增:电量与性能:阻止杀后台应用 参考自 https://www.coolapk.com/feed/37905475?shareKey=ODVjZjU1ZGI1YmMyNjJmZjkxNjU~ by 向晚今天吃了咩@coolapk 已获授权 * 新增:电量与性能:使 Millet 更加激进 参考自 https://www.coolapk.com/feed/37574229?shareKey=YWNmMWQ4ZTY2MDI4NjJmZjkxOTg~ by 向晚今天吃了咩@coolapk 已获授权 * 电量与性能:阻止杀后台应用:更新描述 * 电量与性能:阻止杀后台应用:添加更多防杀 * 电量与性能:使 Millet 更加激进: 强制开启 Millet * 电量与性能:使 Millet 更加激进: 冻结延迟设置为3秒 * 电量与性能:使 Millet 更加激进: 允许 Millet 冻结活跃的应用 * 电量与性能:阻止杀后台应用:更新描述 * 电量与性能:允许 Millet 冻结活跃的应用: 检查使 Millet 更加激进
This commit is contained in:
@@ -505,6 +505,15 @@ class SettingsActivity : MIUIActivity() {
|
||||
TitleText(textId = R.string.scope_powerkeeper)
|
||||
TextSummaryWithSwitch(TextSummaryV(textId = R.string.lock_max_fps, tipsId = R.string.lock_max_fps_summary), SwitchV("lock_max_fps"))
|
||||
TextSummaryWithSwitch(TextSummaryV(textId = R.string.prevent_recovery_of_battery_optimization_white_list, tipsId = R.string.failed_after_restart), SwitchV("prevent_recovery_of_battery_optimization_white_list"))
|
||||
TextSummaryWithSwitch(TextSummaryV(textId = R.string.do_not_clear_app, tipsId = R.string.do_not_clear_app_summary), SwitchV("do_not_clear_app"))
|
||||
val makeMilletMoreAggressiveSwitchBinding = GetDataBinding({ safeSP.getBoolean("make_millet_more_aggressive", false) }) { view, flags, data ->
|
||||
when (flags) {
|
||||
1 -> (view as Switch).isEnabled = data as Boolean
|
||||
2 -> view.visibility = if (data as Boolean) View.VISIBLE else View.GONE
|
||||
}
|
||||
}
|
||||
TextSummaryWithSwitch(TextSummaryV(textId = R.string.make_millet_more_aggressive, tipsId = R.string.make_millet_more_aggressive_summary), SwitchV("make_millet_more_aggressive", dataBindingSend = makeMilletMoreAggressiveSwitchBinding.bindingSend))
|
||||
TextSummaryWithSwitch(TextSummaryV(textId = R.string.make_millet_ignore_active, tipsId = R.string.make_millet_ignore_active_summary), SwitchV("make_millet_ignore_active"), dataBindingRecv = makeMilletMoreAggressiveSwitchBinding.binding.getRecv(2))
|
||||
TextSummaryArrow(TextSummaryV(textId = R.string.battery_optimization, tipsId = R.string.battery_optimization_summary, onClickListener = {
|
||||
try {
|
||||
val intent = Intent()
|
||||
|
||||
Reference in New Issue
Block a user