diff --git a/app/src/main/java/cc/chenhe/qqnotifyevo/core/NotificationProcessor.kt b/app/src/main/java/cc/chenhe/qqnotifyevo/core/NotificationProcessor.kt index d69be57..45f0670 100644 --- a/app/src/main/java/cc/chenhe/qqnotifyevo/core/NotificationProcessor.kt +++ b/app/src/main/java/cc/chenhe/qqnotifyevo/core/NotificationProcessor.kt @@ -678,7 +678,10 @@ abstract class NotificationProcessor(context: Context) { .setPersons(conversation.messages.map { it.person }.toSet().toTypedArray()) .setShortLabel(conversation.name) .setLongLabel(conversation.name) - .setIcon(IconCompat.createWithBitmap(avatarManager.getAvatar(conversation.name.hashCode()))) + .setIcon( + avatarManager.getAvatar(conversation.name.hashCode()) + ?.let { IconCompat.createWithBitmap(it) } + ) .setIntent( context.packageManager.getLaunchIntentForPackage(tag.pkg) ?: Intent(context, PreferenceAty::class.java).apply {