From fc173702239084582243dab2f02c6aaf26f9ee3c Mon Sep 17 00:00:00 2001 From: David Perez Date: Mon, 4 Mar 2024 14:26:12 -0600 Subject: [PATCH] Add notification-specific icons (#1088) --- .../auth/manager/AuthRequestNotificationManagerImpl.kt | 2 +- app/src/main/res/drawable/ic_notification.xml | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/drawable/ic_notification.xml diff --git a/app/src/main/java/com/x8bit/bitwarden/data/auth/manager/AuthRequestNotificationManagerImpl.kt b/app/src/main/java/com/x8bit/bitwarden/data/auth/manager/AuthRequestNotificationManagerImpl.kt index 403a9ea88..f2752a54d 100644 --- a/app/src/main/java/com/x8bit/bitwarden/data/auth/manager/AuthRequestNotificationManagerImpl.kt +++ b/app/src/main/java/com/x8bit/bitwarden/data/auth/manager/AuthRequestNotificationManagerImpl.kt @@ -66,7 +66,7 @@ class AuthRequestNotificationManagerImpl( ?.let { context.getString(R.string.confim_log_in_attemp_for_x, it) } ?: context.getString(R.string.confirm_log_in), ) - .setSmallIcon(R.drawable.ic_launcher_foreground) + .setSmallIcon(R.drawable.ic_notification) .setColor(Color.White.value.toInt()) .setAutoCancel(true) .setTimeoutAfter(NOTIFICATION_DEFAULT_TIMEOUT_MILLIS) 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 000000000..1a6737614 --- /dev/null +++ b/app/src/main/res/drawable/ic_notification.xml @@ -0,0 +1,10 @@ + + +