Skip to content

Commit

Permalink
Update NetworkManager.java
Browse files Browse the repository at this point in the history
Removed String ETHERNET.
  • Loading branch information
VinuL committed Aug 28, 2015
1 parent 2eaa4da commit a34791c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/android/NetworkManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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";

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

0 comments on commit a34791c

Please sign in to comment.