mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 03:59:16 +01:00
Fixed #849
This commit is contained in:
parent
2dc61cb070
commit
97519884b6
@ -44,7 +44,8 @@ open class MangaImpl : Manga {
|
|||||||
set(value) { ogGenre = value }
|
set(value) { ogGenre = value }
|
||||||
|
|
||||||
override var status: Int
|
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 }
|
set(value) { ogStatus = value }
|
||||||
|
|
||||||
override var thumbnail_url: String? = null
|
override var thumbnail_url: String? = null
|
||||||
|
@ -56,7 +56,9 @@ class CustomMangaManager(val context: Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun saveMangaInfo(manga: MangaJson) {
|
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)
|
customMangaMap.remove(manga.id)
|
||||||
} else {
|
} else {
|
||||||
customMangaMap[manga.id] = MangaImpl().apply {
|
customMangaMap[manga.id] = MangaImpl().apply {
|
||||||
|
Loading…
Reference in New Issue
Block a user