Merge pull request #1 from VinuL/VinuL-patch-1

Update NetworkManager.java
This commit is contained in:
VinuL 2015-08-27 14:00:02 +01:00
commit 2eaa4daed4

View File

@ -45,6 +45,7 @@ public class NetworkManager extends CordovaPlugin {
public static final String WIFI = "wifi";
public static final String WIMAX = "wimax";
public static final String ETHERNET = "ethernet";
// mobile
public static final String MOBILE = "mobile";
@ -240,6 +241,9 @@ public class NetworkManager extends CordovaPlugin {
if (type.equals(WIFI)) {
return TYPE_WIFI;
}
else if (type.toLowerCase().equals(ETHERNET)) {
return TYPE_ETHERNET;
}
else if (type.equals(MOBILE) || type.equals(CELLULAR)) {
type = info.getSubtypeName();
if (type.equals(GSM) ||