Merge "Address API review feedback"
This commit is contained in:
commit
79a90c3b8e
1 changed files with 51 additions and 36 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue