Merge "PreBootBroadcaster.java: Make the PendingIntent immutable"
This commit is contained in:
committed by
Android (Google) Code Review
commit
9dfe748b50
@@ -144,7 +144,8 @@ public abstract class PreBootBroadcaster extends IIntentReceiver.Stub {
|
||||
|
||||
final PendingIntent contentIntent;
|
||||
if (context.getPackageManager().resolveActivity(intent, 0) != null) {
|
||||
contentIntent = PendingIntent.getActivity(context, 0, intent, 0);
|
||||
contentIntent = PendingIntent.getActivity(context, 0, intent,
|
||||
PendingIntent.FLAG_IMMUTABLE);
|
||||
} else {
|
||||
contentIntent = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user