You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bo...@apache.org on 2015/12/17 20:23:38 UTC

cordova-plugin-network-information git commit: CB-10160: Fixed the case mismatch issue

Repository: cordova-plugin-network-information
Updated Branches:
  refs/heads/master 3b1490cb7 -> d018f7ead


CB-10160: Fixed the case mismatch issue


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/commit/d018f7ea
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/tree/d018f7ea
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/diff/d018f7ea

Branch: refs/heads/master
Commit: d018f7ead981eea61795f18a0f033ec952f0d421
Parents: 3b1490c
Author: Joe Bowser <bo...@apache.org>
Authored: Thu Dec 17 11:23:23 2015 -0800
Committer: Joe Bowser <bo...@apache.org>
Committed: Thu Dec 17 11:23:33 2015 -0800

----------------------------------------------------------------------
 src/android/NetworkManager.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/d018f7ea/src/android/NetworkManager.java
----------------------------------------------------------------------
diff --git a/src/android/NetworkManager.java b/src/android/NetworkManager.java
index 0323f69..59965bd 100755
--- a/src/android/NetworkManager.java
+++ b/src/android/NetworkManager.java
@@ -244,7 +244,7 @@ public class NetworkManager extends CordovaPlugin {
                 return TYPE_ETHERNET;
             }
             else if (type.equals(MOBILE) || type.equals(CELLULAR)) {
-                type = info.getSubtypeName();
+                type = info.getSubtypeName().toLowerCase(Locale.US);
                 if (type.equals(GSM) ||
                         type.equals(GPRS) ||
                         type.equals(EDGE)) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org