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

Commit 9301bf41 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Tidy up changes for TimeZoneDetectorStrategy" am: c5725ad0 am: 4d5ada28

Change-Id: I4d4fe7ffd6312456210774a831e0c0e7a3e8aa6f
parents 7becacbc 4d5ada28
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -385,7 +385,7 @@ public class TimeZoneDetectorStrategy {
    }

    private static boolean isOriginAutomatic(@Origin int origin) {
        return origin == ORIGIN_PHONE;
        return origin != ORIGIN_MANUAL;
    }

    @GuardedBy("this")
@@ -456,15 +456,17 @@ public class TimeZoneDetectorStrategy {
     * Dumps internal state such as field values.
     */
    public synchronized void dumpState(PrintWriter pw, String[] args) {
        pw.println("TimeZoneDetectorStrategy:");
        pw.println("mCallback.isTimeZoneDetectionEnabled()="
        IndentingPrintWriter ipw = new IndentingPrintWriter(pw, " ");
        ipw.println("TimeZoneDetectorStrategy:");

        ipw.increaseIndent(); // level 1
        ipw.println("mCallback.isTimeZoneDetectionEnabled()="
                + mCallback.isAutoTimeZoneDetectionEnabled());
        pw.println("mCallback.isDeviceTimeZoneInitialized()="
        ipw.println("mCallback.isDeviceTimeZoneInitialized()="
                + mCallback.isDeviceTimeZoneInitialized());
        pw.println("mCallback.getDeviceTimeZone()="
        ipw.println("mCallback.getDeviceTimeZone()="
                + mCallback.getDeviceTimeZone());

        IndentingPrintWriter ipw = new IndentingPrintWriter(pw, " ");
        ipw.println("Time zone change log:");
        ipw.increaseIndent(); // level 2
        mTimeZoneChangesLog.dump(ipw);
@@ -485,8 +487,6 @@ public class TimeZoneDetectorStrategy {
        ipw.decreaseIndent(); // level 2
        ipw.decreaseIndent(); // level 1
        ipw.flush();

        pw.flush();
    }

    /**