From a252a8acee8c26ce8ca39f1ae8758d5ed2af0c8e Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 18 Jul 2021 12:33:19 -0400 Subject: [PATCH] Update detection of disabled MIUI Optimization --- app/src/main/java/eu/kanade/tachiyomi/util/system/MiuiUtil.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/system/MiuiUtil.kt b/app/src/main/java/eu/kanade/tachiyomi/util/system/MiuiUtil.kt index fde9bd7725..ab7baf55ed 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/system/MiuiUtil.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/system/MiuiUtil.kt @@ -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 }