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

Commit 91e236c1 authored by George Lin's avatar George Lin Committed by Automerger Merge Worker
Browse files

Give state description to the tabs am: ee17d9a1

parents ebd678a3 ee17d9a1
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -62,6 +62,12 @@ class SlotTabAdapter : RecyclerView.Adapter<SlotTabAdapter.ViewHolder>() {
                null
            }
        )
        val stateDescription =
            item.selectedQuickAffordances
                .find { it.isSelected.value }
                ?.text
                ?.asString(holder.itemView.context)
        stateDescription?.let { holder.itemView.stateDescription = it }
    }

    class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {