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

Commit 9aa9a5d8 authored by Jack Yu's avatar Jack Yu Committed by android-build-merger
Browse files

Merge "Fixed the incorrect roaming override"

am: 5a824371

Change-Id: Idb453c006dea935774ae2e40070175707f272000
parents d113d6c7 5a824371
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -2050,8 +2050,11 @@ public class ServiceStateTracker extends Handler {
            // carrier config possibly overrides it.
            mNewSS.setDataRoamingFromRegistration(roaming);

            if (mGsmRoaming && !isOperatorConsideredRoaming(mNewSS) &&
                    (isSameNamedOperators(mNewSS) || isOperatorConsideredNonRoaming(mNewSS))) {
            if (mGsmRoaming && !isOperatorConsideredRoaming(mNewSS)
                    && (isSameNamedOperators(mNewSS) || isOperatorConsideredNonRoaming(mNewSS))) {
                log("updateRoamingState: resource override set non roaming.isSameNamedOperators="
                        + isSameNamedOperators(mNewSS) + ",isOperatorConsideredNonRoaming="
                        + isOperatorConsideredNonRoaming(mNewSS));
                roaming = false;
            }

@@ -3298,7 +3301,7 @@ public class ServiceStateTracker extends Handler {
        }

        for (String numeric : numericArray) {
            if (operatorNumeric.startsWith(numeric)) {
            if (!TextUtils.isEmpty(numeric) && operatorNumeric.startsWith(numeric)) {
                return true;
            }
        }
@@ -3322,7 +3325,7 @@ public class ServiceStateTracker extends Handler {
        }

        for (String numeric : numericArray) {
            if (operatorNumeric.startsWith(numeric)) {
            if (!TextUtils.isEmpty(numeric) && operatorNumeric.startsWith(numeric)) {
                return true;
            }
        }