mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Quality
This commit is contained in:
+1
@@ -37,6 +37,7 @@ import kotlinx.collections.immutable.toImmutableList
|
|||||||
* Draw a row of avatars (they must all have the same size), from start to end.
|
* Draw a row of avatars (they must all have the same size), from start to end.
|
||||||
* @param avatarDataList the avatars to render. Note: they will all be rendered, the caller may
|
* @param avatarDataList the avatars to render. Note: they will all be rendered, the caller may
|
||||||
* want to limit the list size
|
* want to limit the list size
|
||||||
|
* @param avatarType the type of avatars to render
|
||||||
* @param modifier Jetpack Compose modifier
|
* @param modifier Jetpack Compose modifier
|
||||||
* @param overlapRatio the overlap ration. When 0f, avatars will render without overlap, when 1f
|
* @param overlapRatio the overlap ration. When 0f, avatars will render without overlap, when 1f
|
||||||
* only the first avatar will be visible
|
* only the first avatar will be visible
|
||||||
|
|||||||
+2
-2
@@ -18,8 +18,8 @@ internal fun InitialOrImageAvatar(
|
|||||||
hideAvatarImage: Boolean,
|
hideAvatarImage: Boolean,
|
||||||
forcedAvatarSize: Dp?,
|
forcedAvatarSize: Dp?,
|
||||||
avatarShape: Shape,
|
avatarShape: Shape,
|
||||||
modifier: Modifier,
|
contentDescription: String?,
|
||||||
contentDescription: String?
|
modifier: Modifier = Modifier,
|
||||||
) {
|
) {
|
||||||
when {
|
when {
|
||||||
avatarData.url.isNullOrBlank() || hideAvatarImage -> InitialLetterAvatar(
|
avatarData.url.isNullOrBlank() || hideAvatarImage -> InitialLetterAvatar(
|
||||||
|
|||||||
Reference in New Issue
Block a user