diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2010-10-11 16:00:27 -0700 |
---|---|---|
committer | Robert Greenwalt <rgreenwalt@google.com> | 2010-11-19 10:24:30 -0800 |
commit | 434203a277cd2f237a71508a3d5a7d1602126cd5 (patch) | |
tree | 2981f403196d1df7f2ec322a89a4dac1342d86de /telephony | |
parent | 5af53d4363342b383fd1e4439b5a2c71a47c593d (diff) | |
download | frameworks_base-434203a277cd2f237a71508a3d5a7d1602126cd5.zip frameworks_base-434203a277cd2f237a71508a3d5a7d1602126cd5.tar.gz frameworks_base-434203a277cd2f237a71508a3d5a7d1602126cd5.tar.bz2 |
Notify all VMs when proxy changes.
bug:2700664
Change-Id: I74cc6e0bd6e66847bf18f524ce851e3e9d2c4e87
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java b/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java index 70328f7..06c7c1b 100644 --- a/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java +++ b/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java @@ -1007,14 +1007,9 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { ApnSetting apn = mPendingDataConnection.getApn(); if (apn.proxy != null && apn.proxy.length() != 0) { try { - ProxyProperties proxy = new ProxyProperties(); - proxy.setSocketAddress(new InetSocketAddress(InetAddress.getByName(apn.proxy), - Integer.parseInt(apn.port))); + ProxyProperties proxy = new ProxyProperties(apn.proxy, + Integer.parseInt(apn.port), null); mLinkProperties.setHttpProxy(proxy); - } catch (UnknownHostException e) { - loge("UnknownHostException making ProxyProperties: " + e); - } catch (SecurityException e) { - loge("SecurityException making ProxyProperties: " + e); } catch (NumberFormatException e) { loge("NumberFormatException making ProxyProperties (" + apn.port + "): " + e); |