fix: notification summary background

This commit is contained in:
NextAlone
2022-05-05 05:19:49 +08:00
parent 15e7490808
commit ad195d93ea

View File

@@ -715,6 +715,21 @@ class SystemUIHooker : YukiBaseHooker() {
beforeHook { modifyNotifyPanelAlpha(args().last().cast<Drawable>()) }
}
}.by { isOldNotificationBackground.not() }
ExpandableNotificationRowClass.hook {
injectMember {
method {
name = "updateBackgroundForGroupState"
paramCount = 0
}
beforeHook {
if (prefs.get(DataConst.ENABLE_NOTIFY_PANEL_ALPHA)) {
ExpandableNotificationRowClass.clazz.field {
name = "mShowGroupBackgroundWhenExpanded"
}.get(instance).setTrue()
}
}
}
}.by { isOldNotificationBackground.not() }
/** 替换通知面板背景 - 旧版本 */
NotificationBackgroundViewClass.hook {
injectMember {