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

Commit 14327cc2 authored by Fan Wu's avatar Fan Wu
Browse files

[Catalyst] Cleanup PersistentPreferences

Bug: 388167302

Test: atest

Flag: EXEMPT refactor
Change-Id: I5ae8d7b88ac83f2dbcee3f5682e6cfdc0643d8f0
parent 31fb142c
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -78,13 +78,8 @@ annotation class SensitivityLevel {
/** Preference metadata that has a value persisted in datastore. */
interface PersistentPreference<T> : PreferenceMetadata {

    /**
     * The value type the preference is associated with.
     *
     * TODO(b/388167302): Remove the default implementation once all subclasses are migrated.
     */
    val valueType: Class<T>?
        get() = null
    /** The value type the preference is associated with. */
    val valueType: Class<T>

    /**
     * Returns the key-value storage of the preference.