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

Commit ee17d9a1 authored by George Lin's avatar George Lin
Browse files

Give state description to the tabs

Test: Manaully tested it reads the selected shortcut
Bug: 280558142
Change-Id: I17e4a3da4cc22562751fb76ae85a66159e53e664
parent 014d4fd7
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) {