Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Android
Description
My device returns "4g" as subtypename when checking the connection. Since this string is not found the plugin returns "unknow" connection.
The Java plugin, NeworkManager.java line 246, does the bellow check where the string "4g" doesn't match any of the constants:
else if (type.equals(MOBILE) || type.equals(CELLULAR)) {
type = info.getSubtypeName().toLowerCase(Locale.US);
if (type.equals(GSM) ||
type.equals(GPRS) ||
type.equals(EDGE))
else if (type.startsWith(CDMA) ||
type.equals(UMTS) ||
type.equals(ONEXRTT) ||
type.equals(EHRPD) ||
type.equals(HSUPA) ||
type.equals(HSDPA) ||
type.equals(HSPA))
else if (type.equals(LTE) ||
type.equals(UMB) ||
type.equals("4g") ||
type.equals(HSPA_PLUS))
}
Attachments
Attachments
Issue Links
- links to