mirror of
https://github.com/fankes/ColorOSNotifyIcon.git
synced 2025-09-06 10:45:49 +08:00
Merge code
This commit is contained in:
@@ -330,8 +330,8 @@ class SystemUIHooker : YukiBaseHooker() {
|
|||||||
var customPair: Pair<Bitmap?, Int>? = null
|
var customPair: Pair<Bitmap?, Int>? = null
|
||||||
when {
|
when {
|
||||||
/** 替换系统图标为 Android 默认 */
|
/** 替换系统图标为 Android 默认 */
|
||||||
(packageName == "android" || packageName == "com.android.systemui") && !isGrayscaleIcon -> customPair =
|
(packageName == "android" || packageName == "com.android.systemui") && !isGrayscaleIcon ->
|
||||||
Pair(if (isUpperOfAndroidS) IconPackParams.android12IconBitmap else IconPackParams.android11IconBitmap, 0)
|
customPair = Pair(if (isUpperOfAndroidS) IconPackParams.android12IconBitmap else IconPackParams.android11IconBitmap, 0)
|
||||||
/** 替换自定义通知图标 */
|
/** 替换自定义通知图标 */
|
||||||
prefs.getBoolean(ENABLE_NOTIFY_ICON_FIX, default = true) -> run {
|
prefs.getBoolean(ENABLE_NOTIFY_ICON_FIX, default = true) -> run {
|
||||||
if (iconDatas.isNotEmpty())
|
if (iconDatas.isNotEmpty())
|
||||||
|
Reference in New Issue
Block a user