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

Commit 574ce485 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[Catalyst] Cleanup PersistentPreferences" into main

parents 77dab617 14327cc2
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.