mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Ensure that room / space avatar always have a contentDescription.
This commit is contained in:
+1
-1
@@ -404,7 +404,7 @@ private fun RoomHeaderSection(
|
||||
}.toImmutableList(),
|
||||
isTombstoned = isTombstoned,
|
||||
),
|
||||
contentDescription = avatarUrl?.let { stringResource(CommonStrings.a11y_room_avatar) },
|
||||
contentDescription = stringResource(CommonStrings.a11y_room_avatar),
|
||||
modifier = Modifier
|
||||
.clickable(
|
||||
enabled = avatarUrl != null,
|
||||
|
||||
+1
-1
@@ -115,7 +115,7 @@ private fun SpaceInfoSection(
|
||||
Avatar(
|
||||
avatarData = AvatarData(roomId.value, name, avatarUrl, AvatarSize.SpaceListItem),
|
||||
avatarType = AvatarType.Space(),
|
||||
contentDescription = avatarUrl?.let { stringResource(CommonStrings.a11y_avatar) },
|
||||
contentDescription = stringResource(CommonStrings.a11y_avatar),
|
||||
)
|
||||
Spacer(Modifier.width(16.dp))
|
||||
Column {
|
||||
|
||||
+1
-1
@@ -66,7 +66,7 @@ fun UserProfileHeaderSection(
|
||||
Avatar(
|
||||
avatarData = AvatarData(userId.value, userName, avatarUrl, AvatarSize.UserHeader),
|
||||
avatarType = AvatarType.User,
|
||||
contentDescription = avatarUrl?.let { stringResource(CommonStrings.a11y_user_avatar) },
|
||||
contentDescription = stringResource(CommonStrings.a11y_user_avatar),
|
||||
modifier = Modifier
|
||||
.clip(CircleShape)
|
||||
.clickable(
|
||||
|
||||
Reference in New Issue
Block a user