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

Commit 03ea5dd1 authored by Jack Yu's avatar Jack Yu Committed by Android (Google) Code Review
Browse files

Merge "Fixed the incorrect roaming override" into oc-dr1-dev

parents 42705ae4 2dd5ef8b
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -2049,8 +2049,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;
            }

@@ -3294,7 +3297,7 @@ public class ServiceStateTracker extends Handler {
        }

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

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