am 71e3d079: Merge "Make the VPN notice connectivity changes on stacked interfaces." into mnc-dev

* commit '71e3d079d623b93ec8a66afa6a1281896c7cd2c6':
  Make the VPN notice connectivity changes on stacked interfaces.
This commit is contained in:
Lorenzo Colitti
2015-07-03 02:49:58 +00:00
committed by Android Git Automerger

View File

@@ -1135,7 +1135,7 @@ public class Vpn {
final ConnectivityManager cm = ConnectivityManager.from(mContext);
for (Network network : cm.getAllNetworks()) {
final LinkProperties lp = cm.getLinkProperties(network);
if (lp != null && mOuterInterface.equals(lp.getInterfaceName())) {
if (lp != null && lp.getAllInterfaceNames().contains(mOuterInterface)) {
final NetworkInfo networkInfo = cm.getNetworkInfo(network);
if (networkInfo != null) mOuterConnection.set(networkInfo.getType());
}