From 1671a56f42c4bb1de3482c2ff264593531e5d39d Mon Sep 17 00:00:00 2001 From: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com> Date: Sat, 11 Feb 2023 10:38:59 +0700 Subject: [PATCH] MangaCoverDialog: Disable memory cache (#9066) --- .../eu/kanade/presentation/manga/components/MangaCoverDialog.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/kanade/presentation/manga/components/MangaCoverDialog.kt b/app/src/main/java/eu/kanade/presentation/manga/components/MangaCoverDialog.kt index 6b3c8c4e2e..e946383caa 100644 --- a/app/src/main/java/eu/kanade/presentation/manga/components/MangaCoverDialog.kt +++ b/app/src/main/java/eu/kanade/presentation/manga/components/MangaCoverDialog.kt @@ -40,6 +40,7 @@ import androidx.compose.ui.window.Dialog import androidx.compose.ui.window.DialogProperties import androidx.core.view.updatePadding import coil.imageLoader +import coil.request.CachePolicy import coil.request.ImageRequest import coil.size.Size import eu.kanade.presentation.components.DropdownMenu @@ -162,6 +163,7 @@ fun MangaCoverDialog( val request = ImageRequest.Builder(view.context) .data(coverDataProvider()) .size(Size.ORIGINAL) + .memoryCachePolicy(CachePolicy.DISABLED) .target { drawable -> // Copy bitmap in case it came from memory cache // Because SSIV needs to thoroughly read the image