From d2a2849b4f9d1d8f724bc6548e65ab1f142ca71a Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Sat, 3 Jul 2021 00:51:48 -0400 Subject: [PATCH] CustomMangaManager refactor --- .../eu/kanade/tachiyomi/data/library/CustomMangaManager.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 36f6c03ddd..e19eede03c 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,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 {