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

Commit d7d869bc authored by Weng Su's avatar Weng Su Committed by Android (Google) Code Review
Browse files

Merge "Add a mutability flag to the PendingIntent"

parents d58a9cdd bd482c98
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -224,7 +224,7 @@ public class WifiSlice implements CustomSliceable {
    private SliceAction getActivityAction(int requestCode, Intent intent, IconCompat icon,
            CharSequence title) {
        final PendingIntent pi = PendingIntent.getActivity(mContext, requestCode, intent,
                0 /* flags */);
                PendingIntent.FLAG_IMMUTABLE /* flags */);
        return SliceAction.createDeeplink(pi, icon, ListBuilder.ICON_IMAGE, title);
    }

@@ -289,7 +289,7 @@ public class WifiSlice implements CustomSliceable {
    private PendingIntent getPrimaryAction() {
        final Intent intent = getIntent();
        return PendingIntent.getActivity(mContext, 0 /* requestCode */,
                intent, 0 /* flags */);
                intent, PendingIntent.FLAG_IMMUTABLE /* flags */);
    }

    private Set<String> getKeywords() {