Skip to content

Commit 4b14d4f

Browse files
authored
fix: For opush notifications, get the package name through notification.
1 parent c9340bb commit 4b14d4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ object SystemUIHooker : YukiBaseHooker() {
528528
iconView: ImageView,
529529
header: Boolean = false
530530
) = runInSafe {
531-
compatCustomIcon(context, isGrayscaleIcon, packageName).also { customTriple ->
531+
compatCustomIcon(context, isGrayscaleIcon, if (nf.isOplusPush) nf.packageName else packageName).also { customTriple ->
532532
when {
533533
ConfigData.isEnableNotifyIconForceAppIcon -> iconView.apply {
534534
/** 重新设置图标 */

0 commit comments

Comments
 (0)