diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentView.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentView.kt index e5d6c8fde..52902c017 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentView.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentView.kt @@ -141,6 +141,7 @@ import kotlinx.coroutines.CancellationException import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.delay import kotlinx.coroutines.launch +import kotlinx.coroutines.withContext import net.engawapg.lib.zoomable.rememberZoomState import net.engawapg.lib.zoomable.zoomable @@ -542,7 +543,10 @@ fun ShowHash( if (content.hash != null) { LaunchedEffect(key1 = content.url) { - val newVerifiedHash = verifyHash(content) + val newVerifiedHash = + withContext(Dispatchers.IO) { + verifyHash(content) + } if (newVerifiedHash != verifiedHash) { verifiedHash = newVerifiedHash }