connectivity-change events can happen before boot completes (similar to: am: 1f2a2ace5d

Original change: undetermined

Change-Id: Id6396ae951a35d9a0d553315bfc198b01b6cbef3
This commit is contained in:
Stan Chesnutt
2021-05-31 04:08:00 +00:00
committed by Automerger Merge Worker

View File

@@ -2173,7 +2173,8 @@ public class ConnectivityService extends IConnectivityManager.Stub {
if (proxy == null) proxy = new ProxyProperties("", 0, "");
log("sending Proxy Broadcast for " + proxy);
Intent intent = new Intent(Proxy.PROXY_CHANGE_ACTION);
intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);
intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING |
Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
intent.putExtra(Proxy.EXTRA_PROXY_INFO, proxy);
mContext.sendStickyBroadcast(intent);
}