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

Commit 28ad8f25 authored by Steve Kondik's avatar Steve Kondik
Browse files

Enable use of http proxy.

parent 7bb25767
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
@@ -237,6 +237,7 @@ public class RequestQueue implements RequestFeeder {
            mContext.registerReceiver(mProxyChangeReceiver,
                                      new IntentFilter(Proxy.PROXY_CHANGE_ACTION));
        }
        setProxyConfig();	
    }

    /**
@@ -258,9 +259,6 @@ public class RequestQueue implements RequestFeeder {
     */
    private synchronized void setProxyConfig() {
        NetworkInfo info = mConnectivityManager.getActiveNetworkInfo();
        if (info != null && info.getType() == ConnectivityManager.TYPE_WIFI) {
            mProxyHost = null;
        } else {
        String host = Proxy.getHost(mContext);
        if (HttpLog.LOGV) HttpLog.v("RequestQueue.setProxyConfig " + host);
        if (host == null) {
@@ -270,7 +268,6 @@ public class RequestQueue implements RequestFeeder {
            mProxyHost = new HttpHost(host, Proxy.getPort(mContext), "http");
        }
    }
    }

    /**
     * used by webkit