Issue#6 Add Immutable Flag to PendingIntent
This commit is contained in:
parent
c981125e8b
commit
ca2cca9944
1 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ package org.fnives.tiktokdownloader.ui.service
|
|||
import android.app.NotificationChannel
|
||||
import android.app.NotificationManager
|
||||
import android.app.PendingIntent
|
||||
import android.app.PendingIntent.FLAG_IMMUTABLE
|
||||
import android.app.PendingIntent.FLAG_UPDATE_CURRENT
|
||||
import android.app.Service
|
||||
import android.content.Context
|
||||
|
|
@ -126,7 +127,7 @@ class QueueService : Service() {
|
|||
context,
|
||||
NOTIFICATION_PENDING_INTENT_REQUEST_CODE,
|
||||
MainActivity.buildIntent(context),
|
||||
FLAG_UPDATE_CURRENT
|
||||
FLAG_UPDATE_CURRENT or FLAG_IMMUTABLE,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue