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

Commit 1d3d2f4a authored by Cédric Bellegarde's avatar Cédric Bellegarde Committed by Bruno Martins
Browse files

lineage-sdk: Add support for clock auto-hiding

Change-Id: I9d05188289e334a99baeaa330fb869573e123ea6
parent 990b7665
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -911,6 +911,16 @@ public final class LineageSettings {
        public static final Validator STATUS_BAR_CLOCK_VALIDATOR =
                new InclusiveIntegerRangeValidator(0, 2);

        /**
         * Whether to hide clock when launcher is visible
         * default: false
         */
        public static final String STATUS_BAR_CLOCK_AUTO_HIDE = "status_bar_clock_auto_hide";

        /** @hide */
        public static final Validator STATUS_BAR_CLOCK_AUTO_HIDE_VALIDATOR =
                sBooleanValidator;

        /**
         * Whether the notification light will be allowed when in zen mode during downtime
         */
@@ -2296,6 +2306,7 @@ public final class LineageSettings {
                    HIGH_TOUCH_SENSITIVITY_ENABLE_VALIDATOR);
            VALIDATORS.put(SYSTEM_PROFILES_ENABLED, SYSTEM_PROFILES_ENABLED_VALIDATOR);
            VALIDATORS.put(STATUS_BAR_CLOCK, STATUS_BAR_CLOCK_VALIDATOR);
            VALIDATORS.put(STATUS_BAR_CLOCK_AUTO_HIDE, STATUS_BAR_CLOCK_AUTO_HIDE_VALIDATOR);
            VALIDATORS.put(STATUS_BAR_AM_PM, STATUS_BAR_AM_PM_VALIDATOR);
            VALIDATORS.put(STATUS_BAR_BATTERY_STYLE, STATUS_BAR_BATTERY_STYLE_VALIDATOR);
            VALIDATORS.put(STATUS_BAR_SHOW_BATTERY_PERCENT,