mirror of
https://gitee.com/shuto/cordova-plugin-network-information.git
synced 2025-03-15 12:51:00 +08:00
CB-10160: Fixed the case mismatch issue
This commit is contained in:
parent
3b1490cb7c
commit
d018f7ead9
@ -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)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user