From fd8a0240c00658e9ca9b55e247f02e2090e01136 Mon Sep 17 00:00:00 2001 From: Mady Mellor Date: Fri, 8 Jan 2021 10:29:36 -0800 Subject: [PATCH] Mark mutability explicitly in tests Fixes: 176869010 Test: atest BubbleTest Change-Id: I5ace7342b3c20cf2946f86ed463fe7ae40105820 --- .../unittest/src/com/android/wm/shell/bubbles/BubbleTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/BubbleTest.java b/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/BubbleTest.java index 0693052129584..bde04b604c795 100644 --- a/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/BubbleTest.java +++ b/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/BubbleTest.java @@ -71,7 +71,7 @@ public class BubbleTest extends ShellTestCase { Intent target = new Intent(mContext, BubblesTestActivity.class); Notification.BubbleMetadata metadata = new Notification.BubbleMetadata.Builder( - PendingIntent.getActivity(mContext, 0, target, 0), + PendingIntent.getActivity(mContext, 0, target, PendingIntent.FLAG_MUTABLE), Icon.createWithResource(mContext, R.drawable.bubble_ic_create_bubble)) .build(); when(mSbn.getNotification()).thenReturn(mNotif);