Content description for breadcrumbs

This commit is contained in:
Benoit Marty 2021-02-12 18:00:10 +01:00
parent 79dafaf13d
commit 5618af07bd
2 changed files with 3 additions and 0 deletions

View file

@ -46,6 +46,7 @@ abstract class BreadcrumbsItem : VectorEpoxyModel<BreadcrumbsItem.Holder>() {
holder.rootView.setOnClickListener(itemClickListener)
holder.unreadIndentIndicator.isVisible = hasUnreadMessage
avatarRenderer.render(matrixItem, holder.avatarImageView)
holder.avatarImageView.contentDescription = matrixItem.getBestName()
holder.unreadCounterBadgeView.render(UnreadCounterBadgeView.State(unreadNotificationCount, showHighlighted))
holder.draftIndentIndicator.isVisible = hasDraft
holder.typingIndicator.isVisible = hasTypingUsers

View file

@ -33,6 +33,7 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="ContentDescription"
tools:src="@tools:sample/avatars" />
<im.vector.app.features.home.room.list.UnreadCounterBadgeView
@ -75,6 +76,7 @@
android:layout_width="20dp"
android:layout_height="20dp"
android:background="@drawable/circle"
android:contentDescription="@string/a11y_unsent_draft"
android:padding="3dp"
android:src="@drawable/ic_edit"
android:visibility="gone"