|
1 | 1 | package cc.chenhe.qqnotifyevo.core |
2 | 2 |
|
| 3 | +import android.annotation.SuppressLint |
3 | 4 | import android.app.Notification |
4 | 5 | import android.app.PendingIntent |
5 | 6 | import android.content.Context |
@@ -386,7 +387,7 @@ abstract class NotificationProcessor(context: Context) { |
386 | 387 | } else { |
387 | 388 | // 与我相关的动态 |
388 | 389 | getNotifyLargeIcon(context, original)?.also { |
389 | | - avatarManager.saveAvatar(CONVERSATION_NAME_QZONE_SPECIAL.hashCode(), it) |
| 390 | + avatarManager.saveAvatar(CONVERSATION_NAME_QZONE.hashCode(), it) |
390 | 391 | } |
391 | 392 | conversation = addMessage( |
392 | 393 | tag, |
@@ -421,7 +422,7 @@ abstract class NotificationProcessor(context: Context) { |
421 | 422 |
|
422 | 423 | if (!isMulti) |
423 | 424 | getNotifyLargeIcon(context, original)?.also { |
424 | | - avatarManager.saveAvatar(CONVERSATION_NAME_QZONE_SPECIAL.hashCode(), it) |
| 425 | + avatarManager.saveAvatar(groupName.hashCode(), it) |
425 | 426 | } |
426 | 427 | val conversation = addMessage( |
427 | 428 | tag, name, text, groupName, avatarManager.getAvatar(name.hashCode()), |
@@ -452,7 +453,7 @@ abstract class NotificationProcessor(context: Context) { |
452 | 453 | val text = matcher.group(2) ?: return null |
453 | 454 | if (!isMulti) |
454 | 455 | getNotifyLargeIcon(context, original)?.also { |
455 | | - avatarManager.saveAvatar(CONVERSATION_NAME_QZONE_SPECIAL.hashCode(), it) |
| 456 | + avatarManager.saveAvatar(name.hashCode(), it) |
456 | 457 | } |
457 | 458 | val conversation = addMessage( |
458 | 459 | tag, name, text, null, avatarManager.getAvatar(name.hashCode()), |
@@ -653,6 +654,7 @@ abstract class NotificationProcessor(context: Context) { |
653 | 654 | * @param tag 来源标记。 |
654 | 655 | * @param original 原始通知。 |
655 | 656 | */ |
| 657 | + @SuppressLint("BinaryOperationInTimber") |
656 | 658 | protected fun createConversationNotification( |
657 | 659 | context: Context, tag: Tag, channel: NotifyChannel, |
658 | 660 | conversation: Conversation, original: Notification |
|
0 commit comments