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 <hy4ri@users.noreply.github.com>
This commit is contained in:
M57andM57 authored and GitHub committed 2026-06-19 22:15:36 +03:00
1 parent 607a1b0439
commit 451412851f
2 files changed
+12 -2

No files matched your search

@@ -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)
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="#FFFFFF">
<path
android:fillColor="#FFFFFF"
android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM11,6h2v6h-2V6zM11,14h2v2h-2v-2z"/>
</vector>