diff options
| author | 2021-04-15 16:36:55 +0800 | |
|---|---|---|
| committer | 2021-04-15 16:45:45 +0800 | |
| commit | 287c90d4b0bba045fdfad21ce7fe5e284346bbaa (patch) | |
| tree | f5b55344cf13a1747b9bcd86d63b71e949912970 | |
| parent | f18be5595d1b484fd05f750602fa81a35e9c6418 (diff) | |
Replace unaudited PendingIntents with FLAG_IMMUTABLE
Bug: 181012686
Bug: 175194709
Test: atest ActivityTaskManagerServiceTests
Change-Id: I96fe9207b7fb3968a36fe9f902a78ab28d65fc93
| -rw-r--r-- | services/core/java/com/android/server/wm/ActivityTaskManagerService.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/wm/ActivityTaskManagerService.java b/services/core/java/com/android/server/wm/ActivityTaskManagerService.java index c8fa50c35baa..69dff5604b47 100644 --- a/services/core/java/com/android/server/wm/ActivityTaskManagerService.java +++ b/services/core/java/com/android/server/wm/ActivityTaskManagerService.java @@ -4655,11 +4655,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 { |