Save/Sharing a cover now save/shares the custom one

Closes #608
This commit is contained in:
Jays2Kings 2021-08-10 22:44:17 -04:00
parent 06933c3612
commit 0d9f32b96f

View File

@ -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")