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

Commit 95fea5a8 authored by Neil Fuller's avatar Neil Fuller
Browse files

Improve documentation around null MNCs

Improve documentation around null MNCs in LocaleTracker.

Bug: 145661751
Bug: 140712361
Test: treehugger
Change-Id: I63a12a9899a8a4fb282348839dec4ee413442aed
parent 2e70516b
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) {