mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-08 03:24:17 +08:00
feat: 新增对HyperOS 3.0和Android 16的支持 (#244)
This commit is contained in:
@@ -178,7 +178,7 @@ inline val isNotMIOS get() = !isMIOS
|
|||||||
val isSupportMiSystemVersion
|
val isSupportMiSystemVersion
|
||||||
get() = when {
|
get() = when {
|
||||||
isMIOS -> when (miosVersion) {
|
isMIOS -> when (miosVersion) {
|
||||||
"1.0", "1.1", "2.0" -> true
|
"1.0", "1.1", "2.0" , "3.0"-> true
|
||||||
else -> false
|
else -> false
|
||||||
}
|
}
|
||||||
isMIUI -> when (miuiVersion) {
|
isMIUI -> when (miuiVersion) {
|
||||||
@@ -200,6 +200,7 @@ inline val isNotSupportMiSystemVersion get() = !isSupportMiSystemVersion
|
|||||||
*/
|
*/
|
||||||
val androidVersionCodeName
|
val androidVersionCodeName
|
||||||
get() = when (Build.VERSION.SDK_INT) {
|
get() = when (Build.VERSION.SDK_INT) {
|
||||||
|
36 -> "W"
|
||||||
35 -> "V"
|
35 -> "V"
|
||||||
34 -> "U"
|
34 -> "U"
|
||||||
33 -> "T"
|
33 -> "T"
|
||||||
|
Reference in New Issue
Block a user