Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Saravana Perumal Shanmugam <[email protected]>
  • Loading branch information
perusworld committed Dec 13, 2022
1 parent d325b86 commit 4a1707a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,11 @@ 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);
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.S) {
pendingIntent = PendingIntent.getActivity(activity, 0, intent, PendingIntent.FLAG_MUTABLE);
} else {
pendingIntent = PendingIntent.getActivity(activity, 0, intent, 0);
}
}
}

Expand Down

0 comments on commit 4a1707a

Please sign in to comment.