diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2014-08-21 11:45:54 -0700 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2014-08-21 19:09:27 -0700 |
commit | 9f1274b7e43d14c7e3a42148ebfda3905fec8b06 (patch) | |
tree | 27739f72f273278e8dd189dc163ebc88af30dacf /services | |
parent | 223ddaa74d39cb0afabd2d3f3e4ae3ae4bdba572 (diff) | |
download | frameworks_base-9f1274b7e43d14c7e3a42148ebfda3905fec8b06.zip frameworks_base-9f1274b7e43d14c7e3a42148ebfda3905fec8b06.tar.gz frameworks_base-9f1274b7e43d14c7e3a42148ebfda3905fec8b06.tar.bz2 |
Rework the per-network URL API.
This addresses API council comments.
Bug: 17112978
Change-Id: I698b243b2b685d1f25414cee72450be3ae0c2bf0
Diffstat (limited to 'services')
-rw-r--r-- | services/core/java/com/android/server/connectivity/NetworkMonitor.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/connectivity/NetworkMonitor.java b/services/core/java/com/android/server/connectivity/NetworkMonitor.java index ddd0865..9f4ed89 100644 --- a/services/core/java/com/android/server/connectivity/NetworkMonitor.java +++ b/services/core/java/com/android/server/connectivity/NetworkMonitor.java @@ -639,8 +639,7 @@ public class NetworkMonitor extends StateMachine { log("Checking " + url.toString() + " on " + mNetworkAgentInfo.networkInfo.getExtraInfo()); } - url = mNetworkAgentInfo.network.getBoundURL(url); - urlConnection = (HttpURLConnection) url.openConnection(); + urlConnection = (HttpURLConnection) mNetworkAgentInfo.network.openConnection(url); urlConnection.setInstanceFollowRedirects(false); urlConnection.setConnectTimeout(SOCKET_TIMEOUT_MS); urlConnection.setReadTimeout(SOCKET_TIMEOUT_MS); |