Skip to content

Commit

Permalink
Merge pull request #390 from Iterable/bugfix/MOB-3588-action-buttons-…
Browse files Browse the repository at this point in the history
…updatable

[MOB-3588] Add PendingIntent.FLAG_UPDATE_CURRENT to action button intents
  • Loading branch information
vbabenkoru authored Oct 22, 2021
2 parents 7775b92 + 56e3af7 commit c7edf27
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void createNotificationActionButton(Context context, IterableNotification
buttonIntent.putExtra(IterableConstants.ACTION_IDENTIFIER, button.identifier);

PendingIntent pendingButtonIntent = PendingIntent.getBroadcast(context, buttonIntent.hashCode(),
buttonIntent, 0);
buttonIntent, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);

NotificationCompat.Action.Builder actionBuilder = new NotificationCompat.Action
.Builder(NotificationCompat.BADGE_ICON_NONE, button.title, pendingButtonIntent);
Expand Down

0 comments on commit c7edf27

Please sign in to comment.