From aed7f46ca031d5431f65c978b0627b855c473967 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Thu, 25 May 2023 18:25:47 -0400 Subject: [PATCH] remembering size of the robohash picture --- .../amethyst/ui/components/RobohashAsyncImage.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/components/RobohashAsyncImage.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/components/RobohashAsyncImage.kt index 272f77c1f..fdf9c3099 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/components/RobohashAsyncImage.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/components/RobohashAsyncImage.kt @@ -34,7 +34,9 @@ fun RobohashAsyncImage( ) { val context = LocalContext.current val size = with(LocalDensity.current) { - robotSize.roundToPx() + remember { + robotSize.roundToPx() + } } val imageRequest = remember(robotSize, robot) {