Skip to content

Commit

Permalink
Merge pull request #4 from ns0m/fix/pending-intent-sdk31
Browse files Browse the repository at this point in the history
Android: Prevent app crash for targetSDK 31/Android 12
  • Loading branch information
ath0mas authored Nov 23, 2022
2 parents 644ece8 + 2b257e7 commit 7566380
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,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_MUTABLE);
}
}

Expand Down

0 comments on commit 7566380

Please sign in to comment.