Merge "Replace unaudited PendingIntents with FLAG_IMMUTABLE" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
29f7ff1aa6
@@ -4514,11 +4514,9 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
|
||||
.setContentTitle(text)
|
||||
.setContentText(
|
||||
mContext.getText(R.string.heavy_weight_notification_detail))
|
||||
// TODO(b/175194709) Please replace FLAG_MUTABLE_UNAUDITED below
|
||||
// with either FLAG_IMMUTABLE (recommended) or FLAG_MUTABLE.
|
||||
.setContentIntent(PendingIntent.getActivityAsUser(mContext, 0,
|
||||
intent, PendingIntent.FLAG_CANCEL_CURRENT
|
||||
| PendingIntent.FLAG_MUTABLE_UNAUDITED, null,
|
||||
| PendingIntent.FLAG_IMMUTABLE, null,
|
||||
new UserHandle(userId)))
|
||||
.build();
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user