Commit 72e63018 authored by Mygod's avatar Mygod

Add missing permission for broadcast

parent 9e472172
......@@ -76,7 +76,8 @@ class SubscriptionService : Service() {
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
if (worker == null) {
idle.value = false
if (!receiverRegistered) registerReceiver(CancelReceiver, IntentFilter(Action.ABORT))
if (!receiverRegistered) registerReceiver(CancelReceiver, IntentFilter(Action.ABORT),
"$packageName.SERVICE", null)
worker = GlobalScope.launch {
val urls = Subscription.instance.urls
val notification = NotificationCompat.Builder(this@SubscriptionService, NOTIFICATION_CHANNEL).apply {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment