diff options
| author | Jean-Baptiste Queru <jbq@google.com> | 2010-07-16 15:18:56 -0700 |
|---|---|---|
| committer | Jean-Baptiste Queru <jbq@google.com> | 2010-07-16 15:30:40 -0700 |
| commit | 536ff5a6d700a80dbd75adb737ec4b560fbed2dc (patch) | |
| tree | a5db27e40ae513fddf3cee06d21c33eac73f4b0a /core/java | |
| parent | 1726cf285ffc747fd3545b17139aba5e26abdfc6 (diff) | |
| download | frameworks_base-536ff5a6d700a80dbd75adb737ec4b560fbed2dc.zip frameworks_base-536ff5a6d700a80dbd75adb737ec4b560fbed2dc.tar.gz frameworks_base-536ff5a6d700a80dbd75adb737ec4b560fbed2dc.tar.bz2 | |
Fix build.
Switch to using public APIs instead of private ones.
Change-Id: Ia3468d94b3dadeb6a000ce419ee08f7e7ba5dc67
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/net/Proxy.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/core/java/android/net/Proxy.java b/core/java/android/net/Proxy.java index 39d4ac1..22c30a5 100644 --- a/core/java/android/net/Proxy.java +++ b/core/java/android/net/Proxy.java @@ -16,8 +16,6 @@ package android.net; -import org.apache.harmony.luni.platform.INetworkSystem; -import org.apache.harmony.luni.platform.Platform; import org.apache.http.HttpHost; import android.content.ContentResolver; @@ -44,8 +42,6 @@ final public class Proxy { static final public String PROXY_CHANGE_ACTION = "android.intent.action.PROXY_CHANGE"; - static final private INetworkSystem NETIMPL = Platform.getNetworkSystem(); - /** * Return the proxy host set by the user. * @param ctx A Context used to get the settings for the proxy host. @@ -169,8 +165,7 @@ final public class Proxy { if (host.equalsIgnoreCase("localhost")) { return true; } - if (InetAddress.getByAddress(NETIMPL.ipStringToByteArray(host)) - .isLoopbackAddress()) { + if (InetAddress.getByName(host).isLoopbackAddress()) { return true; } } |
