diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/MyAsyncImage.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/MyAsyncImage.kt index 9effe29c4..4e847ec37 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/MyAsyncImage.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/MyAsyncImage.kt @@ -76,13 +76,13 @@ fun MyAsyncImage( } } else { WaitAndDisplay { - Box(contentAlignment = Alignment.Center) { - if (onLoadingBackground != null) { + if (onLoadingBackground != null) { + Box(loadedImageModifier, contentAlignment = Alignment.Center) { onLoadingBackground() LoadingAnimation(Size40dp, Size6dp) - } else { - DisplayUrlWithLoadingSymbol(imageUrl) } + } else { + DisplayUrlWithLoadingSymbol(imageUrl) } } }