mirror of
https://gitee.com/shuto/cordova-plugin-network-information.git
synced 2025-02-23 20:12:49 +08:00
Update NetworkManager.java
Removed String ETHERNET.
This commit is contained in:
parent
2eaa4daed4
commit
a34791c6ec
@ -45,7 +45,6 @@ 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";
|
||||
|
||||
@ -241,7 +240,7 @@ public class NetworkManager extends CordovaPlugin {
|
||||
if (type.equals(WIFI)) {
|
||||
return TYPE_WIFI;
|
||||
}
|
||||
else if (type.toLowerCase().equals(ETHERNET)) {
|
||||
else if (type.toLowerCase().equals(TYPE_ETHERNET)) {
|
||||
return TYPE_ETHERNET;
|
||||
}
|
||||
else if (type.equals(MOBILE) || type.equals(CELLULAR)) {
|
||||
|
Loading…
Reference in New Issue
Block a user