mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +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(),
|
}.toImmutableList(),
|
||||||
isTombstoned = isTombstoned,
|
isTombstoned = isTombstoned,
|
||||||
),
|
),
|
||||||
contentDescription = avatarUrl?.let { stringResource(CommonStrings.a11y_room_avatar) },
|
contentDescription = stringResource(CommonStrings.a11y_room_avatar),
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.clickable(
|
.clickable(
|
||||||
enabled = avatarUrl != null,
|
enabled = avatarUrl != null,
|
||||||
|
|||||||
+1
-1
@@ -115,7 +115,7 @@ private fun SpaceInfoSection(
|
|||||||
Avatar(
|
Avatar(
|
||||||
avatarData = AvatarData(roomId.value, name, avatarUrl, AvatarSize.SpaceListItem),
|
avatarData = AvatarData(roomId.value, name, avatarUrl, AvatarSize.SpaceListItem),
|
||||||
avatarType = AvatarType.Space(),
|
avatarType = AvatarType.Space(),
|
||||||
contentDescription = avatarUrl?.let { stringResource(CommonStrings.a11y_avatar) },
|
contentDescription = stringResource(CommonStrings.a11y_avatar),
|
||||||
)
|
)
|
||||||
Spacer(Modifier.width(16.dp))
|
Spacer(Modifier.width(16.dp))
|
||||||
Column {
|
Column {
|
||||||
|
|||||||
+1
-1
@@ -66,7 +66,7 @@ fun UserProfileHeaderSection(
|
|||||||
Avatar(
|
Avatar(
|
||||||
avatarData = AvatarData(userId.value, userName, avatarUrl, AvatarSize.UserHeader),
|
avatarData = AvatarData(userId.value, userName, avatarUrl, AvatarSize.UserHeader),
|
||||||
avatarType = AvatarType.User,
|
avatarType = AvatarType.User,
|
||||||
contentDescription = avatarUrl?.let { stringResource(CommonStrings.a11y_user_avatar) },
|
contentDescription = stringResource(CommonStrings.a11y_user_avatar),
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.clip(CircleShape)
|
.clip(CircleShape)
|
||||||
.clickable(
|
.clickable(
|
||||||
|
|||||||
+2
-2
@@ -59,7 +59,7 @@ fun DmAvatars(
|
|||||||
Avatar(
|
Avatar(
|
||||||
avatarData = userAvatarData,
|
avatarData = userAvatarData,
|
||||||
avatarType = AvatarType.User,
|
avatarType = AvatarType.User,
|
||||||
contentDescription = userAvatarData.url?.let { stringResource(CommonStrings.a11y_your_avatar) },
|
contentDescription = stringResource(CommonStrings.a11y_your_avatar),
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.align(Alignment.BottomStart)
|
.align(Alignment.BottomStart)
|
||||||
.graphicsLayer {
|
.graphicsLayer {
|
||||||
@@ -94,7 +94,7 @@ fun DmAvatars(
|
|||||||
Avatar(
|
Avatar(
|
||||||
avatarData = otherUserAvatarData,
|
avatarData = otherUserAvatarData,
|
||||||
avatarType = AvatarType.User,
|
avatarType = AvatarType.User,
|
||||||
contentDescription = otherUserAvatarData.url?.let { stringResource(CommonStrings.a11y_other_user_avatar) },
|
contentDescription = stringResource(CommonStrings.a11y_other_user_avatar),
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.align(Alignment.TopEnd)
|
.align(Alignment.TopEnd)
|
||||||
.clip(CircleShape)
|
.clip(CircleShape)
|
||||||
|
|||||||
Reference in New Issue
Block a user