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

Commit 51ed0f97 authored by Julia Reynolds's avatar Julia Reynolds Committed by Automerger Merge Worker
Browse files

DO NOT MERGE Make intents immutable am: dba9823a

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11635218

Change-Id: I6a4caca0386a2c3da9db55be6eb1e66c4e63212c
parents a9c08f43 dba9823a
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -567,7 +567,8 @@ public class PhoneStatusBarPolicy implements Callback, Callbacks,
        String message = mContext.getString(R.string.instant_apps_message);
        PendingIntent appInfoAction = PendingIntent.getActivity(mContext, 0,
                new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS)
                        .setData(Uri.fromParts("package", pkg, null)), 0);
                        .setData(Uri.fromParts("package", pkg, null)),
                        PendingIntent.FLAG_IMMUTABLE);
        Action action = new Notification.Action.Builder(null, mContext.getString(R.string.app_info),
                appInfoAction).build();

@@ -581,7 +582,7 @@ public class PhoneStatusBarPolicy implements Callback, Callbacks,
                    .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

            PendingIntent pendingIntent = PendingIntent.getActivity(mContext,
                    0 /* requestCode */, browserIntent, 0 /* flags */);
                    0 /* requestCode */, browserIntent, PendingIntent.FLAG_IMMUTABLE);
            ComponentName aiaComponent = null;
            try {
                aiaComponent = AppGlobals.getPackageManager().getInstantAppInstallerComponent();
@@ -597,7 +598,8 @@ public class PhoneStatusBarPolicy implements Callback, Callbacks,
                    .putExtra(Intent.EXTRA_VERSION_CODE, appInfo.versionCode)
                    .putExtra(Intent.EXTRA_EPHEMERAL_FAILURE, pendingIntent);

            PendingIntent webPendingIntent = PendingIntent.getActivity(mContext, 0, goToWebIntent, 0);
            PendingIntent webPendingIntent = PendingIntent.getActivity(
                    mContext, 0, goToWebIntent, PendingIntent.FLAG_IMMUTABLE);
            Action webAction = new Notification.Action.Builder(null, mContext.getString(R.string.go_to_web),
                    webPendingIntent).build();
            builder.addAction(webAction);