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))