Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8209540f authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Add FLAG_IMMUTABLE to PendingIntents on Android 12+

parent a579c3a3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ public final class PostUndoAction implements TaskAction
                        context,
                        id,
                        new Intent(context, ActionReceiver.class).setData(taskUri).setAction(ActionService.ACTION_UNDO_COMPLETE),
                        PendingIntent.FLAG_CANCEL_CURRENT));
                        PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_IMMUTABLE));
        builder.setContent(undoView);

        // When the notification is cleared, we perform the destructive action
@@ -78,7 +78,7 @@ public final class PostUndoAction implements TaskAction
                context,
                id,
                new Intent(context, ActionReceiver.class).setData(taskUri).setAction(ActionService.ACTION_FINISH_COMPLETE),
                PendingIntent.FLAG_CANCEL_CURRENT));
                PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_IMMUTABLE));
        builder.setShowWhen(false);
        builder.setGroup(GROUP_UNDO);
        builder.setColor(new AttributeColor(new ContextThemeWrapper(context,