mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-09 21:09:35 +02:00
Update detection of disabled MIUI Optimization
This commit is contained in:
@@ -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 New Issue
Block a user