improvement: Show the export notification immediately

This commit is contained in:
Artem Chepurnyi 2024-08-08 07:52:29 +03:00
parent 58991132df
commit 4df1b82c3b
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ class ExportWorker(
val title = applicationContext.getString(R.string.notification_vault_export_title)
val channelId = createNotificationChannel()
NotificationCompat.Builder(applicationContext, channelId)
.setForegroundServiceBehavior(NotificationCompat.FOREGROUND_SERVICE_DEFERRED)
.setForegroundServiceBehavior(NotificationCompat.FOREGROUND_SERVICE_IMMEDIATE)
.setContentTitle(title)
.setGroup(WORK_ID)
.setSmallIcon(android.R.drawable.stat_sys_download)