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

Commit 4234bb7c authored by Chris Antol's avatar Chris Antol
Browse files

Provide defaultType as default value in method call

Bug: 405344827
Test: none
Flag: com.android.settings.flags.device_state
Change-Id: I44a6076d1c6ecf37ed720bec713f69d4c16a8abe
parent 7e149c52
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -98,7 +98,10 @@ interface PreferenceHierarchyGenerator<T> {
    val defaultType: T

    /** Generates [PreferenceHierarchy] with given type. */
    suspend fun generatePreferenceHierarchy(context: Context, type: T): PreferenceHierarchy
    suspend fun generatePreferenceHierarchy(
        context: Context,
        type: T = defaultType
    ): PreferenceHierarchy
}

/**