Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b35d67a8 authored by Stan Chesnutt's avatar Stan Chesnutt
Browse files

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

https://android-git.corp.google.com/g/#change,87425 )


Change-Id: Ibc0f12defaa5d90894657ce63fb352578eca7060
parent 5727b479
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
    }