summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2021-01-05 19:10:46 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-01-05 19:10:46 +0000
commit44af408be41d46a0d3bf7b9f713aee02f62e8bc7 (patch)
tree9a3667ed6e643c538fcc175be171cfcd41e77b24
parentdf36a8f8b8dc99549ddc670174b61cee9b178c0b (diff)
parent34c917901a2ce9482a9c797cc1ccf004862a7950 (diff)
Merge "SmartReplyViewTest: Add FLAG_MUTABLE to PIs"
-rw-r--r--packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/SmartReplyViewTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/SmartReplyViewTest.java b/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/SmartReplyViewTest.java
index 836a81e42193..5de62b908c64 100644
--- a/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/SmartReplyViewTest.java
+++ b/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/SmartReplyViewTest.java
@@ -492,7 +492,8 @@ public class SmartReplyViewTest extends SysuiTestCase {
private SmartReplyView.SmartReplies createSmartReplies(CharSequence[] choices,
boolean fromAssistant) {
PendingIntent pendingIntent =
- PendingIntent.getBroadcast(mContext, 0, new Intent(TEST_ACTION), 0);
+ PendingIntent.getBroadcast(mContext, 0, new Intent(TEST_ACTION),
+ PendingIntent.FLAG_MUTABLE);
RemoteInput input = new RemoteInput.Builder(TEST_RESULT_KEY).setChoices(choices).build();
return new SmartReplyView.SmartReplies(
Arrays.asList(choices), input, pendingIntent, fromAssistant);
@@ -508,7 +509,7 @@ public class SmartReplyViewTest extends SysuiTestCase {
private Notification.Action createAction(String actionTitle) {
PendingIntent pendingIntent = PendingIntent.getBroadcast(mContext, 0,
- new Intent(TEST_ACTION), 0);
+ new Intent(TEST_ACTION), PendingIntent.FLAG_MUTABLE);
return new Notification.Action.Builder(mActionIcon, actionTitle, pendingIntent).build();
}