Skip to content

Commit

Permalink
ExportWorker: Fix alert notifications not being shown
Browse files Browse the repository at this point in the history
The closure was returning a closure instead of invoking notify().

Signed-off-by: Andrew Gunnerson <[email protected]>
  • Loading branch information
chenxiaolong committed May 25, 2024
1 parent 97389d4 commit ef9b472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/github/tmo1/sms_ie/ExportWorker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}
}
Expand Down

0 comments on commit ef9b472

Please sign in to comment.