From 6ba052d2aff8023f4e6bdfc79eb8c0662b27fdf5 Mon Sep 17 00:00:00 2001 From: Lautaro Martin Emanuel Date: Sat, 16 May 2020 18:54:47 -0300 Subject: [PATCH] Implemented review changes Shorter UI text and >= date comparison instead of > --- .../kanade/tachiyomi/ui/recent/history/HistoryPresenter.kt | 6 ++---- app/src/main/res/values/strings.xml | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/history/HistoryPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/history/HistoryPresenter.kt index 3ae47d2e7f..984c3c6a27 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/history/HistoryPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/history/HistoryPresenter.kt @@ -119,10 +119,8 @@ class HistoryPresenter : BasePresenter() { } } Manga.SORTING_UPLOAD_DATE -> { - val dateUpload = chapter.date_upload - ((currChapterIndex + 1) until chapters.size) - .map { chapters[it] } - .firstOrNull { it.date_upload > dateUpload } + chapters.drop(currChapterIndex + 1) + .firstOrNull { it.date_upload >= chapter.date_upload} } else -> throw NotImplementedError("Unknown sorting method") } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ef12c49dfd..f401c17823 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -473,7 +473,7 @@ Sorting mode By source By chapter number - By chapter upload date + By upload date Download Download custom amount Next chapter