Merge "Add the mutability flag to the pendingIntent"

This commit is contained in:
TreeHugger Robot
2021-01-08 05:26:31 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 4 deletions

View File

@@ -48,8 +48,6 @@ import org.junit.runner.RunWith;
import org.robolectric.Robolectric;
import org.robolectric.RobolectricTestRunner;
import java.util.Collections;
@RunWith(RobolectricTestRunner.class)
public class SliceFullCardRendererHelperTest {
@@ -138,7 +136,7 @@ public class SliceFullCardRendererHelperTest {
mActivity,
title.hashCode() /* requestCode */,
new Intent("test action"),
0 /* flags */);
PendingIntent.FLAG_IMMUTABLE);
final SliceAction action
= SliceAction.createDeeplink(pendingIntent, icon, ListBuilder.SMALL_IMAGE, title);
return new ListBuilder(mActivity, TEST_SLICE_URI, ListBuilder.INFINITY)

View File

@@ -106,7 +106,7 @@ public class SliceHalfCardRendererHelperTest {
mActivity,
title.hashCode() /* requestCode */,
new Intent("test action"),
0 /* flags */);
PendingIntent.FLAG_IMMUTABLE);
final SliceAction action
= SliceAction.createDeeplink(pendingIntent, icon, ListBuilder.SMALL_IMAGE, title);
return new ListBuilder(mActivity, TEST_SLICE_URI, ListBuilder.INFINITY)