From 29084688d13172ec1b7ba0f2e8bbd95b66fa58e1 Mon Sep 17 00:00:00 2001 From: Inhishonor Date: Fri, 12 Dec 2025 15:02:25 -0800 Subject: [PATCH] Add a description to the worker notification It wasn't clear why it was there, and was confusing for the end user. --- .../com/moez/QKSMS/common/util/NotificationManagerImpl.kt | 4 +++- presentation/src/main/res/values/strings.xml | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) 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 cf21c4f8..d5e68541 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 @@ -91,9 +91,11 @@ class NotificationManagerImpl @Inject constructor( createNotificationChannel() } + // Required for running workers on Android 12 and older override fun getForegroundNotificationForWorkersOnOlderAndroids() = NotificationCompat.Builder(context, DEFAULT_CHANNEL_ID) - .setContentTitle(context.getString(R.string.notification_foreground_worker_text)) + .setContentTitle(context.getString(R.string.notification_foreground_worker_title)) + .setContentText(context.getString(R.string.notification_foreground_worker_text)) .setShowWhen(false) .setWhen(System.currentTimeMillis()) .setSmallIcon(R.drawable.ic_notification) diff --git a/presentation/src/main/res/values/strings.xml b/presentation/src/main/res/values/strings.xml index 554c5576..e765b0f4 100644 --- a/presentation/src/main/res/values/strings.xml +++ b/presentation/src/main/res/values/strings.xml @@ -504,7 +504,8 @@ Message not sent The message to %s failed to send - Receiving message + Receiving message + On Android 12 and older, a notification is required for the background work that enables receiving messages. Resend