From 290f1afee3e2924afc4b8097c79194d223124fec Mon Sep 17 00:00:00 2001 From: Hongming Jin Date: Mon, 25 Jan 2021 14:54:50 -0800 Subject: [PATCH] Make the pending intent immutable. Bug: 173157883 Test: atest SystemActionPerformerTest Change-Id: I291e1ad768e8a4fc873926a82f689c45cc51819e --- .../src/com/android/systemui/accessibility/SystemActions.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/accessibility/SystemActions.java b/packages/SystemUI/src/com/android/systemui/accessibility/SystemActions.java index 13da2b06c9768..1bf747408d95a 100644 --- a/packages/SystemUI/src/com/android/systemui/accessibility/SystemActions.java +++ b/packages/SystemUI/src/com/android/systemui/accessibility/SystemActions.java @@ -400,10 +400,8 @@ public class SystemActions extends SystemUI { case INTENT_ACTION_ACCESSIBILITY_SHORTCUT: { Intent intent = new Intent(intentAction); intent.setPackage(context.getPackageName()); - // TODO(b/173157883) Please replace FLAG_MUTABLE_UNAUDITED below - // with either FLAG_IMMUTABLE (recommended) or FLAG_MUTABLE. return PendingIntent.getBroadcast(context, 0, intent, - PendingIntent.FLAG_MUTABLE_UNAUDITED); + PendingIntent.FLAG_IMMUTABLE); } default: break;