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

Commit 6115cd38 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Improve documentation around null MNCs"

parents f19c513d 95fea5a8
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) {