am 3dbb5836: am 71e3d079: Merge "Make the VPN notice connectivity changes on stacked interfaces." into mnc-dev
* commit '3dbb583649afeecbd42122fbe1115d2974da021f': Make the VPN notice connectivity changes on stacked interfaces.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user