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

Commit 98f03f49 authored by Neil Fuller's avatar Neil Fuller Committed by android-build-merger
Browse files

Merge "Correctly handle when the user has no explicit time_12_24 setting"

am: 8631e19d

Change-Id: I70533c5ff4ac8cdeef1b42337bb47b09c8bbf927
parents 30874ed6 8631e19d
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -5177,7 +5177,14 @@ public final class ActivityThread {
        }
        updateDefaultDensity();

        final boolean is24Hr = "24".equals(mCoreSettings.getString(Settings.System.TIME_12_24));
        final String use24HourSetting = mCoreSettings.getString(Settings.System.TIME_12_24);
        Boolean is24Hr = null;
        if (use24HourSetting != null) {
            is24Hr = "24".equals(use24HourSetting) ? Boolean.TRUE : Boolean.FALSE;
        }
        // null : use locale default for 12/24 hour formatting,
        // false : use 12 hour format,
        // true : use 24 hour format.
        DateFormat.set24HourTimePref(is24Hr);

        View.mDebugViewAttributes =