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

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

Merge "Fix array out of bound exception for SettingsPreferenceGroupAdapter" into main

parents 9a77cf21 fbed57a6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -227,6 +227,9 @@ open class SettingsPreferenceGroupAdapter(preferenceGroup: PreferenceGroup) :
        isSelected: Boolean,
        isHighlighted: Boolean = false,
    ): Int {
        if (position !in mItemPositionStates.indices) {
            return 0
        }
        val positionState = mItemPositionStates[position]
        return when (positionState) {
            // preference is the first of the section