From e838bb43d2ddf6d2ffb8adcfe28f80198d6c7552 Mon Sep 17 00:00:00 2001 From: Carlos Date: Thu, 27 Apr 2017 14:16:05 -0400 Subject: [PATCH] Deleting categories hides manga until switch from and to library #686 (#769) * Fixed bug 686 https://github.com/inorichi/tachiyomi/issues/686 * Fixed bug 686 https://github.com/inorichi/tachiyomi/issues/686 * undo previous changes to resubscribe add table to mangaQueries to update on table category change * cleaned up formatting --- .../eu/kanade/tachiyomi/data/database/queries/MangaQueries.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/database/queries/MangaQueries.kt b/app/src/main/java/eu/kanade/tachiyomi/data/database/queries/MangaQueries.kt index 1c51f8092..33eb06558 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/database/queries/MangaQueries.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/database/queries/MangaQueries.kt @@ -8,6 +8,7 @@ import eu.kanade.tachiyomi.data.database.models.Manga import eu.kanade.tachiyomi.data.database.resolvers.LibraryMangaGetResolver import eu.kanade.tachiyomi.data.database.resolvers.MangaFlagsPutResolver import eu.kanade.tachiyomi.data.database.resolvers.MangaLastUpdatedPutResolver +import eu.kanade.tachiyomi.data.database.tables.CategoryTable import eu.kanade.tachiyomi.data.database.tables.ChapterTable import eu.kanade.tachiyomi.data.database.tables.MangaCategoryTable import eu.kanade.tachiyomi.data.database.tables.MangaTable @@ -25,7 +26,7 @@ interface MangaQueries : DbProvider { .listOfObjects(Manga::class.java) .withQuery(RawQuery.builder() .query(libraryQuery) - .observesTables(MangaTable.TABLE, ChapterTable.TABLE, MangaCategoryTable.TABLE) + .observesTables(MangaTable.TABLE, ChapterTable.TABLE, MangaCategoryTable.TABLE, CategoryTable.TABLE) .build()) .withGetResolver(LibraryMangaGetResolver.INSTANCE) .prepare()