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

Commit 39245516 authored by Coco Duan's avatar Coco Duan
Browse files

Add hub mode tutorial state in Settings

Add enums for HubModeTutorialState that will be used to
show the tutorial indicator on lockscreen and hides it
once the tutorial is completed.

Bug: b/301269121
Test: flashed device and verified behavior using the states
Change-Id: If8f0bbd20943d955131fff4ead7e71fb56003c7c
parent b5907e7b
Loading
Loading
Loading
Loading
+42 −0
Original line number Diff line number Diff line
@@ -9892,6 +9892,48 @@ public final class Settings {
         */
        public static final String DOCK_SETUP_STATE = "dock_setup_state";
        /**
         * Default, indicates that the user has not yet started the hub mode tutorial.
         *
         * @hide
         */
        public static final int HUB_MODE_TUTORIAL_NOT_STARTED = 0;
        /**
         * Indicates that the user has started but not yet completed the hub mode tutorial.
         * One of the possible states for {@link #HUB_MODE_TUTORIAL_STATE}.
         *
         * @hide
         */
        public static final int HUB_MODE_TUTORIAL_STARTED = 1;
        /**
         * Indicates that the user has completed the hub mode tutorial.
         * One of the possible states for {@link #HUB_MODE_TUTORIAL_STATE}.
         *
         * @hide
         */
        public static final int HUB_MODE_TUTORIAL_COMPLETED = 10;
        /** @hide */
        @Retention(RetentionPolicy.SOURCE)
        @IntDef({
                HUB_MODE_TUTORIAL_NOT_STARTED,
                HUB_MODE_TUTORIAL_STARTED,
                HUB_MODE_TUTORIAL_COMPLETED
        })
        public @interface HubModeTutorialState {
        }
        /**
         * Defines the user's current state of navigating through the hub mode tutorial.
         * The possible states are defined in {@link HubModeTutorialState}.
         *
         * @hide
         */
        public static final String HUB_MODE_TUTORIAL_STATE = "hub_mode_tutorial_state";
        /**
         * The default NFC payment component
         * @hide
+2 −1
Original line number Diff line number Diff line
@@ -243,6 +243,7 @@ public class SecureSettings {
        Settings.Secure.HEARING_AID_SYSTEM_SOUNDS_ROUTING,
        Settings.Secure.ACCESSIBILITY_FONT_SCALING_HAS_BEEN_CHANGED,
        Settings.Secure.SEARCH_PRESS_HOLD_NAV_HANDLE_ENABLED,
        Settings.Secure.SEARCH_LONG_PRESS_HOME_ENABLED
        Settings.Secure.SEARCH_LONG_PRESS_HOME_ENABLED,
        Settings.Secure.HUB_MODE_TUTORIAL_STATE
    };
}
+1 −0
Original line number Diff line number Diff line
@@ -389,5 +389,6 @@ public class SecureSettingsValidators {
        VALIDATORS.put(Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_EDGE_HAPTIC_ENABLED,
                BOOLEAN_VALIDATOR);
        VALIDATORS.put(Secure.DND_CONFIGS_MIGRATED, BOOLEAN_VALIDATOR);
        VALIDATORS.put(Secure.HUB_MODE_TUTORIAL_STATE, NON_NEGATIVE_INTEGER_VALIDATOR);
    }
}