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

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

Merge "[Catalyst] Migrate Adaptive Battery Category" into main

parents c07506b7 a5a0e867
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -58,6 +58,9 @@ class PreferenceHierarchy internal constructor(metadata: PreferenceMetadata) :
    /** Specifies preference order in the hierarchy. */
    infix fun PreferenceHierarchyNode.order(order: Int) = apply { this.order = order }

    /** Specifies preference order in the hierarchy for group. */
    infix fun PreferenceHierarchy.order(order: Int) = apply { this.order = order }

    /** Adds a preference to the hierarchy. */
    @JvmOverloads
    fun add(metadata: PreferenceMetadata, order: Int? = null) {