Merge "Add PendingIntent flag"

This commit is contained in:
TreeHugger Robot
2020-11-18 19:15:16 +00:00
committed by Android (Google) Code Review

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();