Fixes for delete if in category
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user