diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt b/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt index 8c6e25c6d5..dfe5657fcc 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt @@ -541,7 +541,7 @@ class LibraryUpdateService( // Increment and update if it is not already favorited if (!dbManga.favorite) { - count.incrementAndGet() + countNew.incrementAndGet() dbManga.favorite = true dbManga.copyFrom(networkManga) db.insertManga(dbManga).executeAsBlocking() diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt index c4f169d78f..d6805415d4 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt @@ -263,8 +263,8 @@ class LibraryPresenter( if (filterMangaType > 0) { if (if (filterMangaType == Manga.TYPE_MANHWA) { - (filterMangaType != item.manga.mangaType() && filterMangaType != Manga.TYPE_WEBTOON) - } else { + (filterMangaType != item.manga.mangaType() && filterMangaType != Manga.TYPE_WEBTOON) + } else { filterMangaType != item.manga.mangaType() } ) return false @@ -512,9 +512,9 @@ class LibraryPresenter( categories.forEach { category -> val catId = category.id ?: return@forEach if (catId > 0 && !categorySet.contains(catId) && ( - catId !in categoriesHidden || - !showAll - ) + catId !in categoriesHidden || + !showAll + ) ) { val headerItem = headerItems[catId] if (headerItem != null) items.add( @@ -938,7 +938,7 @@ class LibraryPresenter( } } - /** sync selectd manga to mangadex follows */ + /** sync selected manga to mangadex follows */ fun syncMangaToDex(mangaList: List) { scope.launch { withContext(Dispatchers.IO) {