Update detection of disabled MIUI Optimization

This commit is contained in:
arkon 2021-07-18 12:33:19 -04:00 committed by Jays2Kings
parent ba22641ff1
commit 55a0c01012

View File

@ -11,7 +11,8 @@ object MiuiUtil {
@SuppressLint("PrivateApi")
fun isMiuiOptimizationDisabled(): Boolean {
if ("0" == getSystemProperty("persist.sys.miui_optimization")) {
val sysProp = getSystemProperty("persist.sys.miui_optimization")
if (sysProp == "0" || sysProp == "false") {
return true
}