Loading src/java/com/android/internal/telephony/LocaleTracker.java +4 −2 Original line number Diff line number Diff line Loading @@ -330,8 +330,9 @@ public class LocaleTracker extends Handler { count = mccMncMap.get(mccMnc) + 1; } mccMncMap.put(mccMnc, count); // This is unlikely, but if MCC from cell info looks different, we choose the // MCC that occurs most. // We keep track of the MCC+MNC combination that occurs most frequently, if // there is one. A null MNC is treated like any other distinct MCC+MNC // combination. if (count > maxCount) { maxCount = count; selectedMccMnc = mccMnc; Loading @@ -355,6 +356,7 @@ public class LocaleTracker extends Handler { return mccString; } @Nullable private static String getNetworkMnc(CellInfo cellInfo) { String mccString = null; if (cellInfo instanceof CellInfoGsm) { Loading Loading
src/java/com/android/internal/telephony/LocaleTracker.java +4 −2 Original line number Diff line number Diff line Loading @@ -330,8 +330,9 @@ public class LocaleTracker extends Handler { count = mccMncMap.get(mccMnc) + 1; } mccMncMap.put(mccMnc, count); // This is unlikely, but if MCC from cell info looks different, we choose the // MCC that occurs most. // We keep track of the MCC+MNC combination that occurs most frequently, if // there is one. A null MNC is treated like any other distinct MCC+MNC // combination. if (count > maxCount) { maxCount = count; selectedMccMnc = mccMnc; Loading @@ -355,6 +356,7 @@ public class LocaleTracker extends Handler { return mccString; } @Nullable private static String getNetworkMnc(CellInfo cellInfo) { String mccString = null; if (cellInfo instanceof CellInfoGsm) { Loading