Make intents immutable
Test: make
Fixes: 154719656
Change-Id: I212ca5f1a48174ed85311b551259da314718f082
(cherry picked from commit 36b3352784)
This commit is contained in:
@@ -269,7 +269,7 @@ public class InstantAppNotifier extends SystemUI
|
|||||||
0,
|
0,
|
||||||
new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS)
|
new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS)
|
||||||
.setData(Uri.fromParts("package", pkg, null)),
|
.setData(Uri.fromParts("package", pkg, null)),
|
||||||
0,
|
PendingIntent.FLAG_IMMUTABLE,
|
||||||
null,
|
null,
|
||||||
user);
|
user);
|
||||||
Notification.Action action =
|
Notification.Action action =
|
||||||
@@ -303,7 +303,7 @@ public class InstantAppNotifier extends SystemUI
|
|||||||
mContext,
|
mContext,
|
||||||
0 /* requestCode */,
|
0 /* requestCode */,
|
||||||
browserIntent,
|
browserIntent,
|
||||||
0 /* flags */,
|
PendingIntent.FLAG_IMMUTABLE /* flags */,
|
||||||
null,
|
null,
|
||||||
user);
|
user);
|
||||||
ComponentName aiaComponent = null;
|
ComponentName aiaComponent = null;
|
||||||
@@ -325,8 +325,8 @@ public class InstantAppNotifier extends SystemUI
|
|||||||
.putExtra(Intent.EXTRA_LONG_VERSION_CODE, appInfo.longVersionCode)
|
.putExtra(Intent.EXTRA_LONG_VERSION_CODE, appInfo.longVersionCode)
|
||||||
.putExtra(Intent.EXTRA_INSTANT_APP_FAILURE, pendingIntent);
|
.putExtra(Intent.EXTRA_INSTANT_APP_FAILURE, pendingIntent);
|
||||||
|
|
||||||
PendingIntent webPendingIntent =
|
PendingIntent webPendingIntent = PendingIntent.getActivityAsUser(mContext, 0,
|
||||||
PendingIntent.getActivityAsUser(mContext, 0, goToWebIntent, 0, null, user);
|
goToWebIntent, PendingIntent.FLAG_IMMUTABLE, null, user);
|
||||||
Notification.Action webAction =
|
Notification.Action webAction =
|
||||||
new Notification.Action.Builder(
|
new Notification.Action.Builder(
|
||||||
null, mContext.getString(R.string.go_to_web), webPendingIntent)
|
null, mContext.getString(R.string.go_to_web), webPendingIntent)
|
||||||
|
|||||||
Reference in New Issue
Block a user