From 4df1b82c3b3b628aa314fbe60f200ee439a8a2bb Mon Sep 17 00:00:00 2001 From: Artem Chepurnyi Date: Thu, 8 Aug 2024 07:52:29 +0300 Subject: [PATCH] improvement: Show the export notification immediately --- .../keyguard/android/downloader/worker/ExportWorker.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/androidMain/kotlin/com/artemchep/keyguard/android/downloader/worker/ExportWorker.kt b/common/src/androidMain/kotlin/com/artemchep/keyguard/android/downloader/worker/ExportWorker.kt index 41d5c5dd..ade198ff 100644 --- a/common/src/androidMain/kotlin/com/artemchep/keyguard/android/downloader/worker/ExportWorker.kt +++ b/common/src/androidMain/kotlin/com/artemchep/keyguard/android/downloader/worker/ExportWorker.kt @@ -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)