Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63c4595b authored by Mill Chen's avatar Mill Chen
Browse files

Add the mutability flag to the pendingIntent

Since Android S, it's required to specify a mutability flag
when creating a PendingIntent.

Fixes: 172812025
Fixes: 172811729
Test: robotests
Change-Id: Ia77c189c99712eea524fb1bf68e39a087dcba95c
parent 88d10331
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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)
+1 −1
Original line number Diff line number Diff line
@@ -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)