mirror of
https://github.com/fankes/ColorOSNotifyIcon.git
synced 2025-09-06 10:45:49 +08:00
修复 ColorOS 11 无法识别版本号的问题
This commit is contained in:
@@ -102,7 +102,7 @@ inline val isNotColorOS get() = !isColorOS
|
|||||||
val colorOSVersion
|
val colorOSVersion
|
||||||
get() = safeOf(default = "无法获取") {
|
get() = safeOf(default = "无法获取") {
|
||||||
findPropString(key = "ro.system.build.fingerprint", default = "无法获取")
|
findPropString(key = "ro.system.build.fingerprint", default = "无法获取")
|
||||||
.split("ossi:")[1]
|
.split("ssi:")[1]
|
||||||
.split("/")[0].trim()
|
.split("/")[0].trim()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user