Only show MIUI extension warning on MIUI >= 13

Related to #8834

(cherry picked from commit 4cd01428eda8aa6b1438e6f98474255afbe97d91)
This commit is contained in:
arkon
2023-01-08 15:04:06 -05:00
committed by Jobobby04
parent 2b1809b2b7
commit 9bae13c0e6
3 changed files with 16 additions and 2 deletions
@@ -126,7 +126,7 @@ private fun ExtensionContent(
onClickUpdateAll: () -> Unit,
) {
var trustState by remember { mutableStateOf<Extension.Untrusted?>(null) }
val showMiuiWarning = DeviceUtil.isMiui && !DeviceUtil.isMiuiOptimizationDisabled()
val showMiuiWarning = DeviceUtil.isMiui && DeviceUtil.miuiMajorVersion >= 13 && !DeviceUtil.isMiuiOptimizationDisabled()
val uriHandler = LocalUriHandler.current
FastScrollLazyColumn(