Merge "Make pendingintent use immutable flag"
This commit is contained in:
committed by
Android (Google) Code Review
commit
ba8a55a0c3
@@ -316,7 +316,8 @@ public class KeyguardSliceProvider extends SliceProvider implements
|
||||
}
|
||||
mDatePattern = getContext().getString(R.string.system_ui_aod_date_pattern);
|
||||
mPendingIntent = PendingIntent.getActivity(getContext(), 0,
|
||||
new Intent(getContext(), KeyguardSliceProvider.class), 0);
|
||||
new Intent(getContext(), KeyguardSliceProvider.class),
|
||||
PendingIntent.FLAG_IMMUTABLE);
|
||||
try {
|
||||
//TODO(b/168778439): Remove this whole try catch. This is for debugging in dogfood.
|
||||
mMediaManager.addCallback(this);
|
||||
|
||||
Reference in New Issue
Block a user