diff options
author | Paul Jensen <pauljensen@google.com> | 2015-03-10 10:54:12 -0400 |
---|---|---|
committer | Paul Jensen <pauljensen@google.com> | 2015-04-02 14:03:43 +0000 |
commit | 72db88e46fba5f2581eb21c042dc79887cda1c10 (patch) | |
tree | e515e6bb9ad29933a7d1839ea58c1fd7b1bd1279 /packages/CaptivePortalLogin | |
parent | 1b6be18b2d4a822110182d06335e4d6c0ad8ba54 (diff) | |
download | frameworks_base-72db88e46fba5f2581eb21c042dc79887cda1c10.zip frameworks_base-72db88e46fba5f2581eb21c042dc79887cda1c10.tar.gz frameworks_base-72db88e46fba5f2581eb21c042dc79887cda1c10.tar.bz2 |
Deprecate static ConnectivityManager.get/setProcessDefaultNetwork() functions.
These functions risk hitting an unchecked Exception due to ConnectivityManager
not being instantiated yet. Also, change Network.openConnection() to throw a
checked Exception rather than an unchecked Exception when ConnectivityManager
is not yet instantiated.
bug:19416463
Change-Id: Ie1e2b3238aec0343d267c76b64927073f2f05f85
Diffstat (limited to 'packages/CaptivePortalLogin')
-rw-r--r-- | packages/CaptivePortalLogin/src/com/android/captiveportallogin/CaptivePortalLoginActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/CaptivePortalLogin/src/com/android/captiveportallogin/CaptivePortalLoginActivity.java b/packages/CaptivePortalLogin/src/com/android/captiveportallogin/CaptivePortalLoginActivity.java index d898555..77765a4 100644 --- a/packages/CaptivePortalLogin/src/com/android/captiveportallogin/CaptivePortalLoginActivity.java +++ b/packages/CaptivePortalLogin/src/com/android/captiveportallogin/CaptivePortalLoginActivity.java @@ -99,7 +99,7 @@ public class CaptivePortalLoginActivity extends Activity { final ConnectivityManager cm = ConnectivityManager.from(this); final Network network = new Network(mNetId); // Also initializes proxy system properties. - cm.setProcessDefaultNetwork(network); + cm.bindProcessToNetwork(network); // Proxy system properties must be initialized before setContentView is called because // setContentView initializes the WebView logic which in turn reads the system properties. |