Fixes for delete if in category

This commit is contained in:
Jobobby04
2020-10-15 11:27:10 -04:00
parent a4273bb9a2
commit c3a5439d26
3 changed files with 3 additions and 3 deletions
@@ -131,7 +131,7 @@ class SettingsDownloadController : SettingsController() {
summary = context.getString(
R.string.pref_dont_delete_from_categories_summary,
if (selectedCategories.isEmpty()) {
context.getString(R.string.all)
context.getString(R.string.tapping_inverted_none)
} else {
selectedCategories.joinToString { it.name }
}
@@ -16,5 +16,5 @@ fun Manga.shouldDeleteChapters(db: DatabaseHelper, prefs: PreferencesHelper): Bo
.mapNotNull { it.id }
.takeUnless { it.isEmpty() } ?: listOf(0)
return categoriesForManga.any { it !in categoriesToNotDeleteFrom }
return categoriesForManga.intersect(categoriesToNotDeleteFrom).isNotEmpty()
}