Skip to content

Commit a665bee

Browse files
authored
fix: 重新对getStatusBarTickerIcon进行着色 (#234)
1 parent 76f113d commit a665bee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/fankes/miui/notify/hook/entity/SystemUIHooker.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ object SystemUIHooker : YukiBaseHooker() {
994994
).also { pair ->
995995
val originalBitmap = pair.first?.toBitmap()
996996
val bitmap = originalBitmap?.let { Bitmap.createScaledBitmap(it, 50, 50, true) }
997-
result = Icon.createWithBitmap(bitmap)
997+
result = Icon.createWithBitmap(bitmap).apply { if (pair.second) setTint(if (isDark) Color.BLACK else Color.WHITE) }
998998
}
999999
}
10001000
}

0 commit comments

Comments
 (0)