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) {
|
||||
if (manga.title == null && manga.author == null && manga.artist == null
|
||||
&& manga.description == null && manga.genre == null
|
||||
&& (manga.status == null || manga.status == -1)) {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user