修复:自动任务电池状态中充电器任意无法触发 #395

pull/408/head
pppscn 8 months ago
parent b930209772
commit 0b7ecc4096

@ -73,7 +73,7 @@ data class ChargeSetting(
fun getMsg(statusNew: Int, statusOld: Int, pluggedNew: Int, pluggedOld: Int, batteryInfo: String): String {
if (statusNew != status || pluggedNew != plugged) return ""
if (statusNew != status || (pluggedNew != plugged && plugged != 0)) return ""
return getString(R.string.battery_status_changed) + getStatusStr(statusOld) + "(" + getPluggedStr(pluggedOld) + ") → " + getStatusStr(statusNew) + "(" + getPluggedStr(pluggedNew) + ")" + batteryInfo
}

Loading…
Cancel
Save