mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-10 05:47:04 +00:00
bug 886921 - Crash [@ org.mozilla.gecko.GeckoApp.getCellInfo(GeckoApp.java:2336)] r=mfinkle
This commit is contained in:
parent
796ec32b7d
commit
7437e16b8c
@ -2335,10 +2335,12 @@ abstract public class GeckoApp
|
||||
break;
|
||||
}
|
||||
String mcc_mnc = tm.getNetworkOperator();
|
||||
mcc = mcc_mnc.substring(0, 3);
|
||||
mnc = mcc_mnc.substring(3);
|
||||
obj.put("mcc", mcc);
|
||||
obj.put("mnc", mnc);
|
||||
if (mcc_mnc.length() > 3) {
|
||||
mcc = mcc_mnc.substring(0, 3);
|
||||
mnc = mcc_mnc.substring(3);
|
||||
obj.put("mcc", mcc);
|
||||
obj.put("mnc", mnc);
|
||||
}
|
||||
obj.put("asu", mSignalStrenth);
|
||||
} catch(JSONException jsonex) {}
|
||||
cellInfo.put(obj);
|
||||
|
Loading…
Reference in New Issue
Block a user