From c528251e2cd0359079adc06f414f8af0fb567ebc Mon Sep 17 00:00:00 2001 From: jmir1 Date: Tue, 15 Jun 2021 15:10:35 +0200 Subject: [PATCH] fix mark previous episodes as seen --- .../main/java/eu/kanade/tachiyomi/ui/anime/AnimeController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/anime/AnimeController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/anime/AnimeController.kt index f699cf3cf0..c8e0744974 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/anime/AnimeController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/anime/AnimeController.kt @@ -1154,7 +1154,7 @@ class AnimeController : private fun markPreviousAsRead(episodes: List) { val adapter = episodesAdapter ?: return - val prevEpisodes = if (presenter.sortDescending()) adapter.items else adapter.items.reversed() + val prevEpisodes = if (presenter.sortDescending()) adapter.items.reversed() else adapter.items val episodePos = prevEpisodes.indexOf(episodes.lastOrNull()) if (episodePos != -1) { markAsRead(prevEpisodes.take(episodePos))