Fixes for delete if in category
This commit is contained in:
parent
a4273bb9a2
commit
c3a5439d26
@ -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()
|
||||
}
|
||||
|
@ -190,7 +190,7 @@
|
||||
<string name="save_chapter_as_cbz">Save Chapters as CBZ</string>
|
||||
<string name="save_chapter_as_cbz_level">CBZ Compression level</string>
|
||||
<string name="pref_dont_delete_from_categories">Categories to exclude from deletion</string>
|
||||
<string name="pref_dont_delete_from_categories_summary">If a manga is only in these categories, chapters will not be deleted when marking as read and when finishing a chapter.\nCategories:\n%1$s</string>
|
||||
<string name="pref_dont_delete_from_categories_summary">If a manga is in any of these categories, chapters will not be deleted when marking as read and when finishing a chapter.\nCategories:\n%1$s</string>
|
||||
|
||||
<!-- Security settings -->
|
||||
<string name="biometric_lock_times">Biometric lock times</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user