am 77b855a1: Merge "Consider VPN always to be a supported type." into lmp-mr1-dev

* commit '77b855a1a832eda78888a2b04e23722c9ca093ab':
  Consider VPN always to be a supported type.
This commit is contained in:
Erik Kline
2015-01-08 02:14:59 +00:00
committed by Android Git Automerger

View File

@@ -197,7 +197,11 @@ public class ConnectivityManagerTest extends AndroidTestCase {
}
private boolean isSupported(int networkType) {
return mNetworks.containsKey(networkType);
// Change-Id I02eb5f22737720095f646f8db5c87fd66da129d6 added VPN support
// to all devices directly in software, independent of any external
// configuration.
return mNetworks.containsKey(networkType) ||
(networkType == ConnectivityManager.TYPE_VPN);
}
// true if only the system can turn it on