diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/database/models/MangaImpl.kt b/app/src/main/java/eu/kanade/tachiyomi/data/database/models/MangaImpl.kt index 42ddc257e8..4fe3af9306 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/database/models/MangaImpl.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/database/models/MangaImpl.kt @@ -44,7 +44,8 @@ open class MangaImpl : Manga { set(value) { ogGenre = value } override var status: Int - get() = if (favorite) customMangaManager.getManga(this)?.status ?: ogStatus else ogStatus + get() = if (favorite) customMangaManager.getManga(this)?.status.takeIf { it != -1 } + ?: ogStatus else ogStatus set(value) { ogStatus = value } override var thumbnail_url: String? = null diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/library/CustomMangaManager.kt b/app/src/main/java/eu/kanade/tachiyomi/data/library/CustomMangaManager.kt index 53824c4d1c..36f6c03ddd 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/library/CustomMangaManager.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/library/CustomMangaManager.kt @@ -56,7 +56,9 @@ class CustomMangaManager(val context: Context) { } fun saveMangaInfo(manga: MangaJson) { - if (manga.title == null && manga.author == null && manga.artist == null && manga.description == null && manga.genre == null && manga.status == null) { + if (manga.title == null && manga.author == null && manga.artist == null + && manga.description == null && manga.genre == null + && (manga.status == null || manga.status == -1)) { customMangaMap.remove(manga.id) } else { customMangaMap[manga.id] = MangaImpl().apply {