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

Commit b8002efa authored by Edgar Wang's avatar Edgar Wang Committed by Android (Google) Code Review
Browse files

Merge "Avoid crash in getRoundCornerType if there are no mapping" into main

parents 01ecb3fa caea9989
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -223,6 +223,10 @@ open class SettingsPreferenceGroupAdapter(preferenceGroup: PreferenceGroup) :
        isSelected: Boolean,
        isHighlighted: Boolean,
    ): Int {
        if (position !in mRoundCornerMappingList.indices)  {
            return 0
        }

        val cornerType = mRoundCornerMappingList[position]

        if ((cornerType and ROUND_CORNER_CENTER) == 0) {