From a34791c6ec5d9c8073d1292a2d5d4fe9274ce67f Mon Sep 17 00:00:00 2001 From: VinuL Date: Fri, 28 Aug 2015 08:51:20 +0100 Subject: [PATCH] Update NetworkManager.java Removed String ETHERNET. --- src/android/NetworkManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/android/NetworkManager.java b/src/android/NetworkManager.java index 19443f0..0323f69 100755 --- a/src/android/NetworkManager.java +++ b/src/android/NetworkManager.java @@ -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 @@ 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)) {