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

Commit 290f1afe authored by Hongming Jin's avatar Hongming Jin
Browse files

Make the pending intent immutable.

Bug: 173157883
Test: atest SystemActionPerformerTest
Change-Id: I291e1ad768e8a4fc873926a82f689c45cc51819e
parent 4c3c2792
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;