Merge "Add the mutability flag to the pendingIntent." am: b1d340d007
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12974506 Change-Id: I5c160059abd6999a424874c559d7f7120211d6f8
This commit is contained in:
@@ -43,6 +43,7 @@ import com.google.common.annotations.VisibleForTesting;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
// TODO(b/172310863): consider removing this slice.
|
||||
public class ContextualAdaptiveSleepSlice implements CustomSliceable {
|
||||
private static final String TAG = "ContextualAdaptiveSleepSlice";
|
||||
private static final long DEFAULT_SETUP_TIME = 0;
|
||||
@@ -122,7 +123,8 @@ public class ContextualAdaptiveSleepSlice implements CustomSliceable {
|
||||
|
||||
private PendingIntent getPrimaryAction() {
|
||||
final Intent intent = getIntent();
|
||||
return PendingIntent.getActivity(mContext, 0 /* requestCode */, intent, 0 /* flags */);
|
||||
return PendingIntent.getActivity(mContext, 0 /* requestCode */, intent,
|
||||
PendingIntent.FLAG_IMMUTABLE /* flags */);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user