CustomMangaManager refactor

This commit is contained in:
Jays2Kings 2021-07-03 00:51:48 -04:00
parent 97519884b6
commit d2a2849b4f

View File

@ -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 {