Update detection of disabled MIUI Optimization

(cherry picked from commit a252a8acee8c26ce8ca39f1ae8758d5ed2af0c8e)
This commit is contained in:
arkon 2021-07-18 12:33:19 -04:00 committed by Jobobby04
parent dd25cd04c1
commit d0b2f6eaec

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
}