From f172b6b1b93504bbfd4b9e40136d120715bb9e0c Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Tue, 18 Apr 2023 01:45:35 +0800 Subject: [PATCH] Fix notification panel background tint list color not set problem in SystemUIHooker --- .../com/fankes/coloros/notify/hook/entity/SystemUIHooker.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/fankes/coloros/notify/hook/entity/SystemUIHooker.kt b/app/src/main/java/com/fankes/coloros/notify/hook/entity/SystemUIHooker.kt index d104111..89215fc 100644 --- a/app/src/main/java/com/fankes/coloros/notify/hook/entity/SystemUIHooker.kt +++ b/app/src/main/java/com/fankes/coloros/notify/hook/entity/SystemUIHooker.kt @@ -505,7 +505,7 @@ object SystemUIHooker : YukiBaseHooker() { when { isEnable.not() -> { if (isTint) view.backgroundTintList = defaultNotifyPanelTintList - else drawable?.setTint(currentColor) + else drawable?.setTintList(defaultNotifyPanelTintList) } isTint.not() && view.parent?.parent?.javaClass?.name?.contains("ChildrenContainer") == true -> drawable?.alpha = 0 else -> {