Adds content description to space chevrons

This commit is contained in:
ericdecanini 2022-08-22 14:41:48 +02:00
parent 4c404ca4ce
commit 8892fac062
4 changed files with 5 additions and 3 deletions

View file

@ -135,7 +135,8 @@ class NewSpaceSummaryController @Inject constructor(
val countState = UnreadCounterBadgeView.State(childSummary.notificationCount, childSummary.highlightCount > 0)
val expanded = expandedStates[childSummary.roomId] == true
val isSelected = childSummary.roomId == selectedSpace?.roomId
val subSpaces = childSummary.spaceChildren?.filter { childSpace -> spaceSummaries.containsSpaceId(childSpace.childRoomId) }?.sortedWith(subSpaceComparator)
val subSpaces = childSummary.spaceChildren?.filter { childSpace -> spaceSummaries.containsSpaceId(childSpace.childRoomId) }
?.sortedWith(subSpaceComparator)
newSubSpaceSummaryItem {
id(id)

View file

@ -66,7 +66,7 @@
android:layout_height="48dp"
android:layout_marginEnd="21dp"
android:background="?selectableItemBackground"
android:importantForAccessibility="no"
android:contentDescription="@string/a11y_expand_space_children"
android:scaleType="centerInside"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"

View file

@ -79,7 +79,7 @@
android:layout_height="32dp"
android:layout_marginEnd="24dp"
android:background="?selectableItemBackground"
android:importantForAccessibility="no"
android:contentDescription="@string/a11y_expand_space_children"
android:scaleType="centerInside"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"

View file

@ -141,6 +141,7 @@
<string name="create_room">Create Room</string>
<string name="change_space">Change Space</string>
<string name="explore_rooms">Explore Rooms</string>
<string name="a11y_expand_space_children">Expand space children</string>
<!-- Last seen time -->