Add PendingIntent flag

Test: this
Fixes: 173538604
Change-Id: I00b81d8e88f09baf67a687d57e9676a3caaae84e
This commit is contained in:
Julia Reynolds
2020-11-18 10:01:50 -05:00
parent c2ae2b1299
commit f83870c749

View File

@@ -89,7 +89,7 @@ public class BadgeExtractorTest extends UiServiceTestCase {
when(mConfig.getNotificationChannel(mPkg, mUid, "a", false)).thenReturn(channel);
Notification.BubbleMetadata metadata = new Notification.BubbleMetadata.Builder(
PendingIntent.getActivity(mContext, 0, new Intent(), 0),
PendingIntent.getActivity(mContext, 0, new Intent(), PendingIntent.FLAG_IMMUTABLE),
Icon.createWithResource("", 0)).build();
int flags = metadata.getFlags();