Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a2ffd65 authored by Neil Fuller's avatar Neil Fuller Committed by android-build-merger
Browse files

Merge "Improve documentation around null MNCs"

am: 6115cd38

Change-Id: I5fbd35e135a51b72afbebdb6226a3f2e2b77fa62
parents 89cca80c 6115cd38
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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;
@@ -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) {