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

Commit 5a824371 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fixed the incorrect roaming override"

parents 7d64fae5 e72d5449
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -2060,8 +2060,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;
            }

@@ -3308,7 +3311,7 @@ public class ServiceStateTracker extends Handler {
        }

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

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