Merge pull request #625 from Inhishonor/receiving-notification

Add a description to the worker notification
This commit is contained in:
octoshrimpy
2025-12-12 19:50:56 -05:00
committed by GitHub
2 changed files with 5 additions and 2 deletions
@@ -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)