From 49d9f3228dc3ac24e868a75100f1bc06b486e225 Mon Sep 17 00:00:00 2001 From: Uwe Trottmann Date: Fri, 16 Feb 2024 09:53:24 +0100 Subject: [PATCH] Provider filter: remove provider mappings when deleting shows. --- .../java/com/battlelancer/seriesguide/shows/tools/ShowTools2.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/battlelancer/seriesguide/shows/tools/ShowTools2.kt b/app/src/main/java/com/battlelancer/seriesguide/shows/tools/ShowTools2.kt index c67a35e063..de16c7ebbd 100644 --- a/app/src/main/java/com/battlelancer/seriesguide/shows/tools/ShowTools2.kt +++ b/app/src/main/java/com/battlelancer/seriesguide/shows/tools/ShowTools2.kt @@ -162,6 +162,8 @@ class ShowTools2 @Inject constructor( rowsUpdated = database.sgShow2Helper().deleteShow(showId) if (rowsUpdated == -1) return@withContext SgResult.ERROR + database.sgWatchProviderHelper().deleteShowMappings(showId) + SeriesGuideDatabase.rebuildFtsTable(context) SgResult.SUCCESS }