Skip to content

Commit

Permalink
Fix Android 12 - FLAG_IMMUTABLE or FLAG_MUTABLE #466
Browse files Browse the repository at this point in the history
  • Loading branch information
paolosanchi committed Dec 30, 2022
1 parent 617c7ba commit 403d713
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ private void createPendingIntent() {
Activity activity = getActivity();
Intent intent = new Intent(activity, activity.getClass());
intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);
pendingIntent = PendingIntent.getActivity(activity, 0, intent, 0);
pendingIntent = PendingIntent.getActivity(activity, 0, intent, PendingIntent.FLAG_IMMUTABLE);
}
}

Expand Down

0 comments on commit 403d713

Please sign in to comment.