|
|
|
@ -383,13 +383,11 @@ class ReaderPresenter : BasePresenter<ReaderActivity>() {
|
|
|
|
|
if (chapter.read) {
|
|
|
|
|
val removeAfterReadSlots = prefs.removeAfterReadSlots()
|
|
|
|
|
when (removeAfterReadSlots) {
|
|
|
|
|
// Setting disabled
|
|
|
|
|
-1 -> {
|
|
|
|
|
/**Empty function**/
|
|
|
|
|
}
|
|
|
|
|
// Remove current read chapter
|
|
|
|
|
// Setting disabled
|
|
|
|
|
-1 -> { /**Empty function**/ }
|
|
|
|
|
// Remove current read chapter
|
|
|
|
|
0 -> deleteChapter(chapter, manga)
|
|
|
|
|
// Remove previous chapter specified by user in settings.
|
|
|
|
|
// Remove previous chapter specified by user in settings.
|
|
|
|
|
else -> getAdjacentChaptersStrategy(chapter, removeAfterReadSlots)
|
|
|
|
|
.first?.let { deleteChapter(it, manga) }
|
|
|
|
|
}
|
|
|
|
|