Merge "Add the mutability flag to the pendingIntent"
This commit is contained in:
committed by
Android (Google) Code Review
commit
75e2af7645
@@ -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)
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user