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

Commit 6e7936c0 authored by Cédric Bellegarde's avatar Cédric Bellegarde Committed by Jan Altensen
Browse files

lineage-sdk: Add preference keys for one shot auto-brightness

Change-Id: Ifde39e542b078c40b2fd33e951b68fabef417921
parent ce853430
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -2082,6 +2082,15 @@ public final class LineageSettings {
        public static final Validator NOTIFICATION_LIGHT_COLOR_AUTO_VALIDATOR =
                sBooleanValidator;

        /**
         * Wether auto brightness is applied one shot when screen is turned on
         */
        public static final String AUTO_BRIGHTNESS_ONE_SHOT = "auto_brightness_one_shot";

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

        /**
         * Whether or not to launch default music player when headset is connected
         */
@@ -2423,6 +2432,7 @@ public final class LineageSettings {
                    NOTIFICATION_LIGHT_PULSE_CUSTOM_VALUES_VALIDATOR);
            VALIDATORS.put(NOTIFICATION_LIGHT_COLOR_AUTO,
                    NOTIFICATION_LIGHT_COLOR_AUTO_VALIDATOR);
            VALIDATORS.put(AUTO_BRIGHTNESS_ONE_SHOT, AUTO_BRIGHTNESS_ONE_SHOT_VALIDATOR);
            VALIDATORS.put(HEADSET_CONNECT_PLAYER, HEADSET_CONNECT_PLAYER_VALIDATOR);
            VALIDATORS.put(ZEN_ALLOW_LIGHTS, ZEN_ALLOW_LIGHTS_VALIDATOR);
            VALIDATORS.put(ZEN_PRIORITY_ALLOW_LIGHTS, ZEN_PRIORITY_ALLOW_LIGHTS_VALIDATOR);