diff --git a/presentation/src/main/java/com/moez/QKSMS/common/util/NotificationManagerImpl.kt b/presentation/src/main/java/com/moez/QKSMS/common/util/NotificationManagerImpl.kt index d5e68541..8c2ca818 100644 --- a/presentation/src/main/java/com/moez/QKSMS/common/util/NotificationManagerImpl.kt +++ b/presentation/src/main/java/com/moez/QKSMS/common/util/NotificationManagerImpl.kt @@ -98,11 +98,12 @@ class NotificationManagerImpl @Inject constructor( .setContentText(context.getString(R.string.notification_foreground_worker_text)) .setShowWhen(false) .setWhen(System.currentTimeMillis()) - .setSmallIcon(R.drawable.ic_notification) + .setSmallIcon(R.drawable.ic_notification_worker) .setColor(colors.theme().theme) .setCategory(NotificationCompat.CATEGORY_MESSAGE) .setPriority(NotificationCompat.PRIORITY_MIN) .setOngoing(true) + .setSilent(true) .build() /** @@ -163,6 +164,7 @@ class NotificationManagerImpl @Inject constructor( .setSmallIcon(R.drawable.ic_notification) .setNumber(messages.size) .setAutoCancel(true) + .setOnlyAlertOnce(true) .setContentIntent(contentPI) .setDeleteIntent(seenPI) .setLights(Color.WHITE, 500, 2000) diff --git a/presentation/src/main/res/drawable-xxxhdpi/ic_notification_worker.png b/presentation/src/main/res/drawable-xxxhdpi/ic_notification_worker.png new file mode 100644 index 00000000..741f63ec Binary files /dev/null and b/presentation/src/main/res/drawable-xxxhdpi/ic_notification_worker.png differ