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

Commit 4d087b5f authored by bobyang's avatar bobyang
Browse files

Add new settings secure keys to store the SUGGESTED_THEME_FEATURE_ENABLED

Bug: 409162314
Test: atest SettingsBackupTest
atest SettingsValidatorsTest
Flag: NONE only adding hidden APIs

Change-Id: I69ee90107fdc36e67bd898f4a02e24be8724c35d
parent cd699d9d
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -8698,6 +8698,19 @@ public final class Settings {
        public static final String PACK_THEME_FEATURE_ENABLED =
                "pack_theme_feature_enabled";
        /**
         * Setting to indicate that suggested themes feature should be enabled in related app.
         *
         * <ul>
         *   <li>0 = Off
         *   <li>1 = Enable suggested themes
         * </ul>
         *
         * @hide
         */
        public static final String SUGGESTED_THEME_FEATURE_ENABLED =
                "suggested_theme_feature_enabled";
        /**
         * Set by the system to track if the user needs to see the call to action for
         * the lockscreen notification policy.
+1 −0
Original line number Diff line number Diff line
@@ -479,5 +479,6 @@ public class SecureSettingsValidators {
        VALIDATORS.put(Secure.SELECTED_SPELL_CHECKER, NULLABLE_COMPONENT_NAME_VALIDATOR);
        VALIDATORS.put(Secure.SELECTED_SPELL_CHECKER_SUBTYPE, ANY_INTEGER_VALIDATOR);
        VALIDATORS.put(Secure.PACK_THEME_FEATURE_ENABLED, BOOLEAN_VALIDATOR);
        VALIDATORS.put(Secure.SUGGESTED_THEME_FEATURE_ENABLED, BOOLEAN_VALIDATOR);
    }
}
+1 −0
Original line number Diff line number Diff line
@@ -810,6 +810,7 @@ public class SettingsBackupTest {
                 Settings.Secure.V_TO_U_RESTORE_ALLOWLIST,
                 Settings.Secure.V_TO_U_RESTORE_DENYLIST,
                 Settings.Secure.PACK_THEME_FEATURE_ENABLED,
                 Settings.Secure.SUGGESTED_THEME_FEATURE_ENABLED,
                 Settings.Secure.REDACT_OTP_NOTIFICATION_WHILE_CONNECTED_TO_WIFI,
                 Settings.Secure.OTP_NOTIFICATION_REDACTION_LOCK_TIME);