From 0d9f32b96f71f96bd7ede3c8211dcab5ab607243 Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Tue, 10 Aug 2021 22:44:17 -0400 Subject: [PATCH] Save/Sharing a cover now save/shares the custom one Closes #608 --- .../java/eu/kanade/tachiyomi/ui/manga/MangaDetailsPresenter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaDetailsPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaDetailsPresenter.kt index 69770a7ad7..b6c9dfa4fb 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaDetailsPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaDetailsPresenter.kt @@ -813,7 +813,7 @@ class MangaDetailsPresenter( } private fun saveCover(directory: File): File { - val cover = coverCache.getCoverFile(manga) + val cover = coverCache.getCustomCoverFile(manga).takeIf { it.exists() } ?: coverCache.getCoverFile(manga) val type = ImageUtil.findImageType(cover.inputStream()) ?: throw Exception("Not an image")