X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacycell%2Fworkers%2FRegisterRealtimeListenerWorker.kt;h=7eeea89b2dfb22e54844605e361477a65995e682;hb=d9f4f93fa472e77d526b0621882577ff9490da48;hp=6bb76add73692863138dcc4930427af3a1af7239;hpb=86731d839decc4df39f2fa765f6727e64e151cb6;p=PrivacyCell.git diff --git a/app/src/main/java/com/stoutner/privacycell/workers/RegisterRealtimeListenerWorker.kt b/app/src/main/java/com/stoutner/privacycell/workers/RegisterRealtimeListenerWorker.kt index 6bb76ad..7eeea89 100644 --- a/app/src/main/java/com/stoutner/privacycell/workers/RegisterRealtimeListenerWorker.kt +++ b/app/src/main/java/com/stoutner/privacycell/workers/RegisterRealtimeListenerWorker.kt @@ -1,5 +1,5 @@ /* - * Copyright © 2021-2022 Soren Stoutner . + * Copyright 2021-2023 Soren Stoutner . * * This file is part of Privacy Cell . * @@ -77,6 +77,9 @@ class RegisterRealtimeListenerWorker(appContext: Context, workerParameters: Work // Register the telephony manager listener. realtimeMonitoringService.registerTelephonyManagerListener() + // Populate the notification, which might have been accidentally dismissed by the user beginning in Android 14. + realtimeMonitoringService.populateNotification() + // Unbind the service. applicationContext.unbindService(this) } @@ -100,4 +103,4 @@ class RegisterRealtimeListenerWorker(appContext: Context, workerParameters: Work // Return a success. return Result.success() } -} \ No newline at end of file +}