Update detection of disabled MIUI Optimization
This commit is contained in:
parent
447ee4bd09
commit
a252a8acee
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,8 @@ object MiuiUtil {
|
||||||
|
|
||||||
@SuppressLint("PrivateApi")
|
@SuppressLint("PrivateApi")
|
||||||
fun isMiuiOptimizationDisabled(): Boolean {
|
fun isMiuiOptimizationDisabled(): Boolean {
|
||||||
if ("0" == getSystemProperty("persist.sys.miui_optimization")) {
|
val sysProp = getSystemProperty("persist.sys.miui_optimization")
|
||||||
|
if (sysProp == "0" || sysProp == "false") {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue