connectivity-change events can happen before boot completes (similar to:
https://android-git.corp.google.com/g/#change,87425 ) Change-Id: Ibc0f12defaa5d90894657ce63fb352578eca7060
This commit is contained in:
parent
f444f50b79
commit
1f2a2ace5d
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue