Skip to content

Commit

Permalink
fix(android): don't remove LocalNotification from pending on dismiss (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Apr 21, 2020
1 parent e5bd2eb commit 822b140
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ private void createActionIntents(LocalNotification localNotification, Notificati
dissmissIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
dissmissIntent.putExtra(NOTIFICATION_INTENT_KEY, localNotification.getId());
dissmissIntent.putExtra(ACTION_INTENT_KEY, "dismiss");
LocalNotificationSchedule schedule = localNotification.getSchedule();
dissmissIntent.putExtra(NOTIFICATION_IS_REMOVABLE_KEY, schedule == null || schedule.isRemovable());
PendingIntent deleteIntent = PendingIntent.getBroadcast(
context, localNotification.getId(), dissmissIntent, 0);
mBuilder.setDeleteIntent(deleteIntent);
Expand Down

0 comments on commit 822b140

Please sign in to comment.