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

Commit 9103632f 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:...

Merge "Correctly handle when the user has no explicit time_12_24 setting" am: 8631e19d am: 98f03f49
am: ef34053f

Change-Id: I3724485cc956b2d5a64a6e71f325181d5fdbcccf
parents a167322e ef34053f
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 =