mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Cleanup code rework by IDE.
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ internal fun ImageAvatar(
|
|||||||
avatarData: AvatarData,
|
avatarData: AvatarData,
|
||||||
avatarType: AvatarType,
|
avatarType: AvatarType,
|
||||||
forcedAvatarSize: Dp?,
|
forcedAvatarSize: Dp?,
|
||||||
modifier: Modifier = Modifier.Companion,
|
modifier: Modifier = Modifier,
|
||||||
contentDescription: String? = null,
|
contentDescription: String? = null,
|
||||||
) {
|
) {
|
||||||
val size = forcedAvatarSize ?: avatarData.size.dp
|
val size = forcedAvatarSize ?: avatarData.size.dp
|
||||||
|
|||||||
+1
-1
@@ -18,7 +18,7 @@ internal fun InitialLetterAvatar(
|
|||||||
avatarType: AvatarType,
|
avatarType: AvatarType,
|
||||||
forcedAvatarSize: Dp?,
|
forcedAvatarSize: Dp?,
|
||||||
contentDescription: String?,
|
contentDescription: String?,
|
||||||
modifier: Modifier = Modifier.Companion,
|
modifier: Modifier = Modifier,
|
||||||
) {
|
) {
|
||||||
val avatarColors = AvatarColorsProvider.provide(avatarData.id)
|
val avatarColors = AvatarColorsProvider.provide(avatarData.id)
|
||||||
TextAvatar(
|
TextAvatar(
|
||||||
|
|||||||
Reference in New Issue
Block a user