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

Commit 4517eacd authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix: ConnectivityManager is initialized with a wrong context"

parents 79b473ed f9f15fce
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -964,7 +964,8 @@ public final class ActivityThread {
        }

        public void setHttpProxy(String host, String port, String exclList, Uri pacFileUrl) {
            final ConnectivityManager cm = ConnectivityManager.from(getSystemContext());
            final ConnectivityManager cm = ConnectivityManager.from(
                getApplication() != null ? getApplication() : getSystemContext());
            final Network network = cm.getBoundNetworkForProcess();
            if (network != null) {
                Proxy.setHttpProxySystemProperty(cm.getDefaultProxy());