Skip to content

Commit cefe7c0

Browse files
committed
fix flags
1 parent 61c19fa commit cefe7c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/android/com/adobe/phonegap/push/FCMService.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ class FCMService : FirebaseMessagingService() {
471471
this,
472472
requestCode,
473473
dismissedNotificationIntent,
474-
PendingIntent.FLAG_CANCEL_CURRENT
474+
PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_CANCEL_CURRENT
475475
)
476476

477477
val mBuilder: NotificationCompat.Builder =
@@ -699,7 +699,7 @@ class FCMService : FirebaseMessagingService() {
699699
this,
700700
uniquePendingIntentRequestCode,
701701
intent,
702-
PendingIntent.FLAG_ONE_SHOT
702+
PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_ONE_SHOT
703703
)
704704
}
705705
}
@@ -720,7 +720,7 @@ class FCMService : FirebaseMessagingService() {
720720
pIntent = PendingIntent.getBroadcast(
721721
this, uniquePendingIntentRequestCode,
722722
intent,
723-
PendingIntent.FLAG_UPDATE_CURRENT
723+
PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_UPDATE_CURRENT
724724
)
725725
}
726726
}

0 commit comments

Comments
 (0)