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

Commit 82e3f1ed authored by Jack Yu's avatar Jack Yu Committed by android-build-merger
Browse files

Merge "Revert "Fixed that locale tracker incorrectly used the invalid cell info"" into pi-dev

am: fa931b5b

Change-Id: Iaa50dbf9bcb656491503fe838db39a6743d2960a
parents ffb089b5 fa931b5b
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -216,11 +216,13 @@ public class LocaleTracker extends Handler {
     */
    public synchronized void updateOperatorNumericSync(String operatorNumeric) {
        // Check if the operator numeric changes.
        if (DBG) log("updateOperatorNumericSync. mcc/mnc=" + operatorNumeric);
        if (!Objects.equals(mOperatorNumeric, operatorNumeric)) {
            String msg = "Operator numeric changes to " + operatorNumeric;
        String msg = "updateOperatorNumeric. mcc/mnc=" + operatorNumeric;
        if (DBG) log(msg);
        mLocalLog.log(msg);
        if (!Objects.equals(mOperatorNumeric, operatorNumeric)) {
            if (DBG) {
                log("onUpdateOperatorNumeric: operator numeric changes to " + operatorNumeric);
            }
            mOperatorNumeric = operatorNumeric;

            // If the operator numeric becomes unavailable, we need to get the latest cell info so
@@ -276,8 +278,7 @@ public class LocaleTracker extends Handler {
    private void getCellInfo() {
        String msg;
        if (!mPhone.getServiceStateTracker().getDesiredPowerState()) {
            msg = "Radio is off. Skipped getting cell info. Cleared the previous cached cell info.";
            mCellInfo.clear();
            msg = "Radio is off. No need to get cell info.";
            if (DBG) log(msg);
            mLocalLog.log(msg);
            return;