Merge "Make PendingIntent immutable" am: bbab1d3b4f am: 09448f961c

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1450495

Change-Id: I62d89704634f015bc17247819af8212c7bc08ec3
This commit is contained in:
Paul Hu
2020-10-07 07:52:40 +00:00
committed by Automerger Merge Worker

View File

@@ -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;