mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 03:39:19 +01:00
CustomMangaManager refactor
This commit is contained in:
parent
97519884b6
commit
d2a2849b4f
@ -56,9 +56,10 @@ class CustomMangaManager(val context: Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun saveMangaInfo(manga: MangaJson) {
|
fun saveMangaInfo(manga: MangaJson) {
|
||||||
if (manga.title == null && manga.author == null && manga.artist == null
|
if (manga.title == null && manga.author == null && manga.artist == null &&
|
||||||
&& manga.description == null && manga.genre == null
|
manga.description == null && manga.genre == null &&
|
||||||
&& (manga.status == null || manga.status == -1)) {
|
(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