From ef9b47272fcf094257eefa88ba1d7727c4351d8b Mon Sep 17 00:00:00 2001 From: Andrew Gunnerson Date: Fri, 24 May 2024 20:06:42 -0400 Subject: [PATCH] ExportWorker: Fix alert notifications not being shown The closure was returning a closure instead of invoking notify(). Signed-off-by: Andrew Gunnerson --- app/src/main/java/com/github/tmo1/sms_ie/ExportWorker.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/tmo1/sms_ie/ExportWorker.kt b/app/src/main/java/com/github/tmo1/sms_ie/ExportWorker.kt index 4525075..909a75a 100644 --- a/app/src/main/java/com/github/tmo1/sms_ie/ExportWorker.kt +++ b/app/src/main/java/com/github/tmo1/sms_ie/ExportWorker.kt @@ -164,7 +164,7 @@ class ExportWorker(appContext: Context, workerParams: WorkerParameters) : // https://developer.android.com/training/notify-user/build-notification#notify with(NotificationManagerCompat.from(applicationContext)) { // notificationId is a unique int for each notification that you must define - { notify(NOTIFICATION_ID_ALERT, builder.build()) } + notify(NOTIFICATION_ID_ALERT, builder.build()) } } }