From 451412851f29b3943b692a7cd97e9b9e52c40235 Mon Sep 17 00:00:00 2001 From: M57 <41645758+Hy4ri@users.noreply.github.com> Date: Fri, 19 Jun 2026 22:15:36 +0300 Subject: [PATCH] fix(#69): replace mipmap launcher icon with proper notification vector drawable (#95) Notification smallIcon must use a simple mono vector drawable, not a launcher mipmap. Launcher icons render broken in the status bar on many devices. - Added app/src/main/res/drawable/ic_notification.xml (simple info icon) - Updated both showReplyNotification and buildForegroundNotification to reference R.drawable.ic_notification instead of R.mipmap.ic_launcher Co-authored-by: M57 --- .../notification/ChatNotificationService.kt | 4 ++-- app/src/main/res/drawable/ic_notification.xml | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 app/src/main/res/drawable/ic_notification.xml diff --git a/app/src/main/java/com/m57/hermescontrol/notification/ChatNotificationService.kt b/app/src/main/java/com/m57/hermescontrol/notification/ChatNotificationService.kt index d2944266..45fec8de 100644 --- a/app/src/main/java/com/m57/hermescontrol/notification/ChatNotificationService.kt +++ b/app/src/main/java/com/m57/hermescontrol/notification/ChatNotificationService.kt @@ -92,7 +92,7 @@ class ChatNotificationService : Service() { val notification = NotificationCompat .Builder(this, CHANNEL_ID) - .setSmallIcon(R.mipmap.ic_launcher) + .setSmallIcon(R.drawable.ic_notification) .setContentTitle("Hermes") .setContentText(text) .setStyle(NotificationCompat.BigTextStyle().bigText(text)) @@ -116,7 +116,7 @@ class ChatNotificationService : Service() { private fun buildForegroundNotification(text: String): Notification = NotificationCompat .Builder(this, CHANNEL_ID) - .setSmallIcon(R.mipmap.ic_launcher) + .setSmallIcon(R.drawable.ic_notification) .setContentTitle("Hermes") .setContentText(text) .setPriority(NotificationCompat.PRIORITY_LOW) diff --git a/app/src/main/res/drawable/ic_notification.xml b/app/src/main/res/drawable/ic_notification.xml new file mode 100644 index 00000000..0420c005 --- /dev/null +++ b/app/src/main/res/drawable/ic_notification.xml @@ -0,0 +1,10 @@ + + +