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

Commit aaa8ebb8 authored by Yeabkal Wubshit's avatar Yeabkal Wubshit
Browse files

Enable negative values for GESTURE_HINT_PERIOD_DAYS to disable hints

Bug: 417758578 
Test: presubmit 
Flag: EXEMPT update of settings key which is hidden
Change-Id: I173387404501507526c81f8b4039f35e2361a445
parent 56a938f3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -21148,6 +21148,9 @@ public final class Settings {
            /**
             * Setting indicating the duration, in days, between two gesture hint sessions.
             *
             * <p>A value of 0 means that gesture hints will always show without any delay, and a
             * value of -1 means that gesture hints will never show.
             *
             * @hide
             */
            public static final String GESTURE_HINT_PERIOD_DAYS = "gesture_hint_period_days";
+1 −1
Original line number Diff line number Diff line
@@ -477,7 +477,7 @@ public class GlobalSettingsValidators {
                        }));
        VALIDATORS.put(Global.Wearable.GESTURE_PRIMARY_ACTION_USER_PREFERENCE, BOOLEAN_VALIDATOR);
        VALIDATORS.put(Global.Wearable.GESTURE_DISMISS_ACTION_USER_PREFERENCE, BOOLEAN_VALIDATOR);
        VALIDATORS.put(Global.Wearable.GESTURE_HINT_PERIOD_DAYS, NON_NEGATIVE_INTEGER_VALIDATOR);
        VALIDATORS.put(Global.Wearable.GESTURE_HINT_PERIOD_DAYS, ANY_INTEGER_VALIDATOR);
        VALIDATORS.put(Global.GLOBAL_ACTIONS_TIMEOUT_MILLIS, NON_NEGATIVE_INTEGER_VALIDATOR);
    }
}