Update detection of disabled MIUI Optimization
(cherry picked from commit a252a8acee8c26ce8ca39f1ae8758d5ed2af0c8e)
This commit is contained in:
parent
dd25cd04c1
commit
d0b2f6eaec
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user