Merge "Make PendingIntent immutable" am: bbab1d3b4f am: 09448f961c am: ea51bc5a51
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1450495 Change-Id: If7cffe7d845af45c1bbd74e2d66e970cfa7a583b
This commit is contained in:
@@ -154,7 +154,7 @@ public class PacManager {
|
||||
mNetThreadHandler = new Handler(netThread.getLooper());
|
||||
|
||||
mPacRefreshIntent = PendingIntent.getBroadcast(
|
||||
context, 0, new Intent(ACTION_PAC_REFRESH), 0);
|
||||
context, 0, new Intent(ACTION_PAC_REFRESH), PendingIntent.FLAG_IMMUTABLE);
|
||||
context.registerReceiver(new PacRefreshIntentReceiver(),
|
||||
new IntentFilter(ACTION_PAC_REFRESH));
|
||||
mConnectivityHandler = handler;
|
||||
|
||||
Reference in New Issue
Block a user