From 91f705676772ba06941a0959fcdcc1cb3077cc4a Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 14 Mar 2020 13:33:45 -0400 Subject: [PATCH] Bump updates/history limit to 3 months (closes #2702) --- .../kanade/tachiyomi/ui/recent/history/HistoryPresenter.kt | 7 ++++--- .../kanade/tachiyomi/ui/recent/updates/UpdatesPresenter.kt | 2 +- 2 files changed, 5 insertions(+), 4 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 9ac0adee7..a7867c89e 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 @@ -43,9 +43,10 @@ class HistoryPresenter : BasePresenter() { */ fun getRecentMangaObservable(): Observable> { // Set date limit for recent manga - val cal = Calendar.getInstance() - cal.time = Date() - cal.add(Calendar.MONTH, -1) + val cal = Calendar.getInstance().apply { + time = Date() + add(Calendar.MONTH, -3) + } return db.getRecentManga(cal.time).asRxObservable() .map { recents -> diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/updates/UpdatesPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/updates/UpdatesPresenter.kt index 2cd1e1858..11c62550b 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/updates/UpdatesPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/updates/UpdatesPresenter.kt @@ -54,7 +54,7 @@ class UpdatesPresenter( // Set date limit for recent chapters val cal = Calendar.getInstance().apply { time = Date() - add(Calendar.MONTH, -1) + add(Calendar.MONTH, -3) } return db.getRecentChapters(cal.time).asRxObservable()