Skip to content

Commit dc16b4a

Browse files
committed
set FLAG_IMMUTABLE for notification
1 parent 220a027 commit dc16b4a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/main/java/de/lolhens/resticui/BackupManager.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import android.content.Context
77
import androidx.core.app.NotificationCompat
88
import androidx.lifecycle.LifecycleOwner
99
import androidx.lifecycle.MutableLiveData
10-
import androidx.lifecycle.observe
1110
import de.lolhens.resticui.config.*
1211
import de.lolhens.resticui.restic.Restic
1312
import de.lolhens.resticui.restic.ResticException
@@ -98,7 +97,7 @@ class BackupManager private constructor(context: Context) {
9897
context,
9998
System.currentTimeMillis().toInt(),
10099
FolderActivity.intent(context, false, folderConfigId),
101-
PendingIntent.FLAG_UPDATE_CURRENT
100+
PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT
102101
)
103102

104103
when {

0 commit comments

Comments
 (0)