diff --git a/services/tests/uiservicestests/src/com/android/server/notification/NotificationListenerServiceTest.java b/services/tests/uiservicestests/src/com/android/server/notification/NotificationListenerServiceTest.java index 9b37e76e4c654..c63470617288a 100644 --- a/services/tests/uiservicestests/src/com/android/server/notification/NotificationListenerServiceTest.java +++ b/services/tests/uiservicestests/src/com/android/server/notification/NotificationListenerServiceTest.java @@ -357,11 +357,13 @@ public class NotificationListenerServiceTest extends UiServiceTestCase { private ArrayList getSmartActions(String key, int index) { ArrayList 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;