Update the http proxy on LinkProperty change.

bug:16308315
Change-Id: Ie44634a9223f289903c09653f77a998d3a344654
This commit is contained in:
Robert Greenwalt
2014-08-23 09:51:35 -07:00
parent e1dbb17d41
commit 1f358c86ef

View File

@@ -4196,6 +4196,7 @@ public class ConnectivityService extends IConnectivityManager.Stub {
final boolean flushDns = updateRoutes(newLp, oldLp, netId); final boolean flushDns = updateRoutes(newLp, oldLp, netId);
updateDnses(newLp, oldLp, netId, flushDns); updateDnses(newLp, oldLp, netId, flushDns);
updateClat(newLp, oldLp, networkAgent); updateClat(newLp, oldLp, networkAgent);
if (isDefaultNetwork(networkAgent)) handleApplyDefaultProxy(newLp.getHttpProxy());
} }
private void updateClat(LinkProperties newLp, LinkProperties oldLp, NetworkAgentInfo na) { private void updateClat(LinkProperties newLp, LinkProperties oldLp, NetworkAgentInfo na) {