Skip to content

Commit

Permalink
Merge pull request apache#1 from VinuL/VinuL-patch-1
Browse files Browse the repository at this point in the history
Update NetworkManager.java
  • Loading branch information
VinuL committed Aug 27, 2015
2 parents 7caab25 + 82fed3f commit 2eaa4da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/android/NetworkManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -240,6 +241,9 @@ private String getType(NetworkInfo info) {
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) ||
Expand Down

0 comments on commit 2eaa4da

Please sign in to comment.