mirror of
https://gitee.com/shuto/cordova-plugin-network-information.git
synced 2025-01-19 14:02:50 +08:00
Update NetworkManager.java
Broken if.
This commit is contained in:
parent
257e8ada4f
commit
eaea5fd255
@ -247,7 +247,7 @@ public class NetworkManager extends CordovaPlugin {
|
|||||||
if (type.equals(WIFI)) {
|
if (type.equals(WIFI)) {
|
||||||
return TYPE_WIFI;
|
return TYPE_WIFI;
|
||||||
}
|
}
|
||||||
else if (type.toLowerCase().equals(TYPE_ETHERNET) || type.toLowerCase().startsWith(TYPE_ETHERNET_SHORT) {
|
else if (type.toLowerCase().equals(TYPE_ETHERNET) || type.toLowerCase().startsWith(TYPE_ETHERNET_SHORT)) {
|
||||||
return TYPE_ETHERNET;
|
return TYPE_ETHERNET;
|
||||||
}
|
}
|
||||||
else if (type.equals(MOBILE) || type.equals(CELLULAR)) {
|
else if (type.equals(MOBILE) || type.equals(CELLULAR)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user