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

Commit 44af408b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "SmartReplyViewTest: Add FLAG_MUTABLE to PIs"

parents df36a8f8 34c91790
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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();
    }