fix: do not animate server and channel icons
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
parent
bcfdcd6496
commit
6bd5094a7a
|
|
@ -207,6 +207,7 @@ fun InviteScreen(
|
|||
if (invite?.serverIcon != null) {
|
||||
RemoteImage(
|
||||
url = "$REVOLT_FILES/icons/${invite.serverIcon.id}/${invite.serverIcon.filename}",
|
||||
allowAnimation = false,
|
||||
description = viewModel.inviteResult?.value?.serverName
|
||||
?: stringResource(id = R.string.unknown),
|
||||
modifier = Modifier
|
||||
|
|
|
|||
|
|
@ -405,6 +405,7 @@ fun EmojiPicker(
|
|||
} else {
|
||||
RemoteImage(
|
||||
url = "$REVOLT_FILES/icons/${server.icon.id}",
|
||||
allowAnimation = false,
|
||||
description = server.name,
|
||||
modifier = Modifier
|
||||
.clip(CircleShape)
|
||||
|
|
|
|||
|
|
@ -168,6 +168,7 @@ fun GroupIcon(
|
|||
if (icon?.id != null) {
|
||||
RemoteImage(
|
||||
url = rawUrl ?: "$REVOLT_FILES/icons/${icon.id}",
|
||||
allowAnimation = false,
|
||||
contentScale = ContentScale.Crop,
|
||||
description = stringResource(id = R.string.avatar_alt, name),
|
||||
modifier = Modifier
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@ fun ChannelSheetHeader(
|
|||
contentScale = ContentScale.Crop,
|
||||
height = 48,
|
||||
width = 48,
|
||||
allowAnimation = false,
|
||||
modifier = Modifier
|
||||
.size(48.dp)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -343,6 +343,7 @@ fun ChannelSideDrawer(
|
|||
if (icon != null) {
|
||||
RemoteImage(
|
||||
url = icon,
|
||||
allowAnimation = false,
|
||||
modifier = Modifier
|
||||
.size(48.dp)
|
||||
.clip(CircleShape),
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@ fun ServerOverview(server: Server) {
|
|||
RemoteImage(
|
||||
url = "$REVOLT_FILES/icons/${it.id}",
|
||||
description = null,
|
||||
allowAnimation = false,
|
||||
modifier = Modifier
|
||||
.clip(CircleShape)
|
||||
.height(48.dp)
|
||||
|
|
|
|||
Loading…
Reference in New Issue