improvement: Show the export notification immediately
This commit is contained in:
parent
58991132df
commit
4df1b82c3b
|
@ -324,7 +324,7 @@ class ExportWorker(
|
||||||
val title = applicationContext.getString(R.string.notification_vault_export_title)
|
val title = applicationContext.getString(R.string.notification_vault_export_title)
|
||||||
val channelId = createNotificationChannel()
|
val channelId = createNotificationChannel()
|
||||||
NotificationCompat.Builder(applicationContext, channelId)
|
NotificationCompat.Builder(applicationContext, channelId)
|
||||||
.setForegroundServiceBehavior(NotificationCompat.FOREGROUND_SERVICE_DEFERRED)
|
.setForegroundServiceBehavior(NotificationCompat.FOREGROUND_SERVICE_IMMEDIATE)
|
||||||
.setContentTitle(title)
|
.setContentTitle(title)
|
||||||
.setGroup(WORK_ID)
|
.setGroup(WORK_ID)
|
||||||
.setSmallIcon(android.R.drawable.stat_sys_download)
|
.setSmallIcon(android.R.drawable.stat_sys_download)
|
||||||
|
|
Loading…
Reference in New Issue