Merge "Address API review feedback"

This commit is contained in:
Chiachang Wang 2021-04-26 00:22:27 +00:00 • committed by Gerrit Code Review
commit 79a90c3b8e

View file

@ -8664,7 +8664,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
if (vpn == null) return VpnManager.TYPE_VPN_NONE;
final TransportInfo ti = vpn.networkCapabilities.getTransportInfo();
if (!(ti instanceof VpnTransportInfo)) return VpnManager.TYPE_VPN_NONE;
return ((VpnTransportInfo) ti).type;
return ((VpnTransportInfo) ti).getType();
}
/**