From 1471ce79d11ef99d784fb2fd89da5ac583447de4 Mon Sep 17 00:00:00 2001 From: YuKongA <70465933+YuKongA@users.noreply.github.com> Date: Sat, 30 Nov 2024 16:11:01 +0800 Subject: [PATCH] app: Fix MIUI bigVerision was incorrectly displayed as HyperOS --- composeApp/src/commonMain/kotlin/misc/AppUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composeApp/src/commonMain/kotlin/misc/AppUtils.kt b/composeApp/src/commonMain/kotlin/misc/AppUtils.kt index 0022f86..bc2725b 100644 --- a/composeApp/src/commonMain/kotlin/misc/AppUtils.kt +++ b/composeApp/src/commonMain/kotlin/misc/AppUtils.kt @@ -207,7 +207,7 @@ fun handleRomInfo( codebase = romInfo.codebase.toString(), branch = romInfo.branch.toString(), bigVersion = when { - romInfo.osbigversion != ".0" && romInfo.osbigversion != "0.0" -> "HyperOS " + romInfo.osbigversion + romInfo.osbigversion != ".0" && romInfo.osbigversion != "0.0" && romInfo.osbigversion != "" -> "HyperOS " + romInfo.osbigversion romInfo.bigversion.contains("816") -> romInfo.bigversion.replace("816", "HyperOS 1.0") else -> "MIUI ${romInfo.bigversion}" },