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

Commit 34c91790 authored by Ashwini Oruganti's avatar Ashwini Oruganti
Browse files

SmartReplyViewTest: Add FLAG_MUTABLE to PIs

Added FLAG_MUTABLE as these are direct reply related.
See go/immutable-pendingintents for more context.

Bug: 160794467
Test: TH
Change-Id: I0bb5377cd2892b5b8de48cf311a33a99d48ae896
parent c70f1a8a
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();
    }