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

Commit 3b255d1c authored by Ashwini Oruganti's avatar Ashwini Oruganti Committed by Android (Google) Code Review
Browse files

Merge "NotificationListenerServiceTest: Mark unaudited PendingIntents with FLAG_MUTABLE_UNAUDITED"

parents c0d806d3 9bd59dc8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -357,11 +357,13 @@ public class NotificationListenerServiceTest extends UiServiceTestCase {
    private ArrayList<Notification.Action> getSmartActions(String key, int index) {
        ArrayList<Notification.Action> actions = new ArrayList<>();
        for (int i = 0; i < index; i++) {
            // TODO(b/174935955) Please replace FLAG_MUTABLE_UNAUDITED below
            // with either FLAG_IMMUTABLE (recommended) or FLAG_MUTABLE.
            PendingIntent intent = PendingIntent.getBroadcast(
                    getContext(),
                    index /*requestCode*/,
                    new Intent("ACTION_" + key),
                    0 /*flags*/);
                    PendingIntent.FLAG_MUTABLE_UNAUDITED /*flags*/);
            actions.add(new Notification.Action.Builder(null /*icon*/, key, intent).build());
        }
        return actions;