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

Commit 56725dd7 authored by yifan.bai's avatar yifan.bai Committed by android-build-merger
Browse files

Merge "Fix Automatic time zone not working when no NITZ received."

am: fe7f0dc4

Change-Id: I8505f0a577ecc7e5e6c2b584c7bdc623a4f76340
parents 90f77892 fe7f0dc4
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -3147,8 +3147,6 @@ public class ServiceStateTracker extends Handler {
                + mNeedFixZoneAfterNitz + " zone=" + (zone != null ? zone.getID() : "NULL");
        mTimeZoneLog.log(tmpLog);

        mNeedFixZoneAfterNitz = false;

        if (zone != null) {
            log("fixTimeZone: zone != null zone.getID=" + zone.getID());
            if (getAutoTimeZone()) {
@@ -3156,10 +3154,13 @@ public class ServiceStateTracker extends Handler {
            } else {
                log("fixTimeZone: skip changing zone as getAutoTimeZone was false");
            }
            if (mNeedFixZoneAfterNitz) {
                saveNitzTimeZone(zone.getID());
            }
        } else {
            log("fixTimeZone: zone == null, do nothing for zone");
        }
        mNeedFixZoneAfterNitz = false;
    }

    /**