mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
Fix for Issue #213: Unknown connection type for CDMA - EvDo rev. A
This commit is contained in:
parent
2b20b1880d
commit
9040eea76c
@ -41,6 +41,8 @@ public class NetworkManager extends Plugin {
|
|||||||
public static final String HSPA = "hspa";
|
public static final String HSPA = "hspa";
|
||||||
public static final String HSUPA = "hsupa";
|
public static final String HSUPA = "hsupa";
|
||||||
public static final String HSDPA = "hsdpa";
|
public static final String HSDPA = "hsdpa";
|
||||||
|
public static final String ONEXRTT = "1xrtt";
|
||||||
|
public static final String EHRPD = "ehrpd";
|
||||||
// 4G network types
|
// 4G network types
|
||||||
public static final String LTE = "lte";
|
public static final String LTE = "lte";
|
||||||
public static final String UMB = "umb";
|
public static final String UMB = "umb";
|
||||||
@ -208,8 +210,10 @@ public class NetworkManager extends Plugin {
|
|||||||
type.toLowerCase().equals(EDGE)) {
|
type.toLowerCase().equals(EDGE)) {
|
||||||
return TYPE_2G;
|
return TYPE_2G;
|
||||||
}
|
}
|
||||||
else if (type.toLowerCase().equals(CDMA) ||
|
else if (type.toLowerCase().startsWith(CDMA) ||
|
||||||
type.toLowerCase().equals(UMTS) ||
|
type.toLowerCase().equals(UMTS) ||
|
||||||
|
type.toLowerCase().equals(ONEXRTT) ||
|
||||||
|
type.toLowerCase().equals(EHRPD) ||
|
||||||
type.toLowerCase().equals(HSUPA) ||
|
type.toLowerCase().equals(HSUPA) ||
|
||||||
type.toLowerCase().equals(HSDPA) ||
|
type.toLowerCase().equals(HSDPA) ||
|
||||||
type.toLowerCase().equals(HSPA)) {
|
type.toLowerCase().equals(HSPA)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user