From 59f8c1a2880b1d35e870ea0bca2bc7a9cfc48592 Mon Sep 17 00:00:00 2001 From: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com> Date: Sun, 24 Jul 2022 09:18:40 +0700 Subject: [PATCH] MangaPresenter: Don't update fav state when changing categories (#7594) --- .../java/eu/kanade/tachiyomi/ui/manga/MangaPresenter.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaPresenter.kt index 693bdfd13..2c9a0d105 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaPresenter.kt @@ -365,8 +365,10 @@ class MangaPresenter( fun moveMangaToCategoriesAndAddToLibrary(manga: DomainManga, categories: List) { moveMangaToCategories(categories) - presenterScope.launchIO { - updateManga.awaitUpdateFavorite(manga.id, true) + if (!manga.favorite) { + presenterScope.launchIO { + updateManga.awaitUpdateFavorite(manga.id, true) + } } }