Make library update error notification optional (closes #3200)

This commit is contained in:
arkon
2020-05-20 17:39:01 -04:00
parent ed029c52ae
commit 647391ef73
6 changed files with 12 additions and 2 deletions

View File

@@ -120,7 +120,7 @@ class HistoryPresenter : BasePresenter<HistoryController>() {
}
Manga.SORTING_UPLOAD_DATE -> {
chapters.drop(currChapterIndex + 1)
.firstOrNull { it.date_upload >= chapter.date_upload}
.firstOrNull { it.date_upload >= chapter.date_upload }
}
else -> throw NotImplementedError("Unknown sorting method")
}

View File

@@ -164,6 +164,11 @@ class SettingsLibraryController : SettingsController() {
true
}
}
switchPreference {
key = Keys.showLibraryUpdateErrors
titleRes = R.string.pref_library_update_error_notification
defaultValue = false
}
}
preferenceCategory {