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

Commit b95cd7da authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 5909972 from 44369497 to qt-qpr1-release

Change-Id: Ie7dd98c5c1a4ebcd914ed2ce2ee8efc67c2b1c77
parents 470ecf62 44369497
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -3339,10 +3339,13 @@ public class ServiceStateTracker extends Handler {
            // camped on a cell either to attempt registration or for emergency services, then
            // for purposes of setting the locale, we don't care if registration fails or is
            // incomplete.
            String localeOperator = isInvalidOperatorNumeric(operatorNumeric)
                    && (mCellIdentity != null)
                    ? mCellIdentity.getMccString() + mCellIdentity.getMncString()
                    : operatorNumeric;
            // CellIdentity can return a null MCC and MNC in CDMA
            String localeOperator = operatorNumeric;
            if (isInvalidOperatorNumeric(operatorNumeric) && (mCellIdentity != null)
                    && mCellIdentity.getMccString() != null
                    && mCellIdentity.getMncString() != null) {
                localeOperator = mCellIdentity.getMccString() + mCellIdentity.getMncString();
            }

            if (isInvalidOperatorNumeric(localeOperator)) {
                if (DBG) log("localeOperator " + localeOperator + " is invalid");