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

Commit 384ed047 authored by Neil Fuller's avatar Neil Fuller Committed by android-build-merger
Browse files

Merge "Improve documentation around null MNCs" am: 6115cd38 am: 9a2ffd65

am: 18191c8e

Change-Id: Ia63b8f51e9df248608852eeff4d9af5ce6343890
parents 644e3fcf 18191c8e
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -334,8 +334,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;
@@ -359,6 +360,7 @@ public class LocaleTracker extends Handler {
        return mccString;
    }

    @Nullable
    private static String getNetworkMnc(CellInfo cellInfo) {
        String mccString = null;
        if (cellInfo instanceof CellInfoGsm) {