CB-10160: Fixed the case mismatch issue

This commit is contained in:
Joe Bowser 2015-12-17 11:23:23 -08:00
parent 3b1490cb7c
commit d018f7ead9

View File

@ -244,7 +244,7 @@ public class NetworkManager extends CordovaPlugin {
return TYPE_ETHERNET; return TYPE_ETHERNET;
} }
else if (type.equals(MOBILE) || type.equals(CELLULAR)) { else if (type.equals(MOBILE) || type.equals(CELLULAR)) {
type = info.getSubtypeName(); type = info.getSubtypeName().toLowerCase(Locale.US);
if (type.equals(GSM) || if (type.equals(GSM) ||
type.equals(GPRS) || type.equals(GPRS) ||
type.equals(EDGE)) { type.equals(EDGE)) {