From 695aa23563911bd5011a976470f9333d7cffdc38 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Thu, 24 Sep 2026 19:00:48 +0200 Subject: [PATCH] fix: show the Bulwark shield instead of the stock envelope in the status bar --- .../bulwarkmobile/BulwarkFcmModule.kt | 4 +-- .../src/main/res/drawable/ic_notification.xml | 29 +++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 android/app/src/main/res/drawable/ic_notification.xml diff --git a/android/app/src/main/java/com/anonymous/bulwarkmobile/BulwarkFcmModule.kt b/android/app/src/main/java/com/anonymous/bulwarkmobile/BulwarkFcmModule.kt index f55e86af..6922adbe 100644 --- a/android/app/src/main/java/com/anonymous/bulwarkmobile/BulwarkFcmModule.kt +++ b/android/app/src/main/java/com/anonymous/bulwarkmobile/BulwarkFcmModule.kt @@ -128,7 +128,7 @@ class BulwarkFcmModule(reactContext: ReactApplicationContext) ) val builder = NotificationCompat.Builder(ctx, BulwarkMessagingService.CHANNEL_ID) - .setSmallIcon(android.R.drawable.ic_dialog_email) + .setSmallIcon(R.drawable.ic_notification) .setLargeIcon(largeIcon) .setContentTitle(title) .setContentText(body) @@ -181,7 +181,7 @@ class BulwarkFcmModule(reactContext: ReactApplicationContext) PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE, ) val summary = NotificationCompat.Builder(ctx, BulwarkMessagingService.CHANNEL_ID) - .setSmallIcon(android.R.drawable.ic_dialog_email) + .setSmallIcon(R.drawable.ic_notification) .setContentTitle(groupTitle) .setContentText(if (count == 1) "1 new message" else "$count new messages") .setStyle(inbox) diff --git a/android/app/src/main/res/drawable/ic_notification.xml b/android/app/src/main/res/drawable/ic_notification.xml new file mode 100644 index 00000000..fddaeee6 --- /dev/null +++ b/android/app/src/main/res/drawable/ic_notification.xml @@ -0,0 +1,29 @@ + + + + + + + + + +