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

Commit 94097b44 authored by Wink Saville's avatar Wink Saville Committed by Android Git Automerger
Browse files

am 904fb9d7: Merge "Notify people of empty proxies too." into ics-factoryrom

* commit '904fb9d7':
  Notify people of empty proxies too.
parents e690f565 904fb9d7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2618,7 +2618,8 @@ public class ConnectivityService extends IConnectivityManager.Stub {
            }
        }
        if (VDBG) log("changing default proxy to " + proxy);
        if ((proxy == null && mGlobalProxy == null) || proxy.equals(mGlobalProxy)) return;

        // global trumps default, if set, ignore this.
        if (mGlobalProxy != null) return;
        sendProxyBroadcast(proxy);
    }
+3 −1
Original line number Diff line number Diff line
@@ -1768,8 +1768,10 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
            ApnSetting apn = apnContext.getApnSetting();
            if (apn.proxy != null && apn.proxy.length() != 0) {
                try {
                    String port = apn.port;
                    if (TextUtils.isEmpty(port)) port = "8080";
                    ProxyProperties proxy = new ProxyProperties(apn.proxy,
                            Integer.parseInt(apn.port), null);
                            Integer.parseInt(port), null);
                    dcac.setLinkPropertiesHttpProxySync(proxy);
                } catch (NumberFormatException e) {
                    loge("onDataSetupComplete: NumberFormatException making ProxyProperties (" +