From b06189ff953cf08100288904a4c0b2edd4d3c168 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 2 May 2020 12:11:51 -0400 Subject: [PATCH] Revert last_updated change --- .../kanade/tachiyomi/util/chapter/ChapterSourceSync.kt | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/chapter/ChapterSourceSync.kt b/app/src/main/java/eu/kanade/tachiyomi/util/chapter/ChapterSourceSync.kt index 8090f940b..973398bcc 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/chapter/ChapterSourceSync.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/chapter/ChapterSourceSync.kt @@ -134,15 +134,7 @@ fun syncChaptersWithSource( db.fixChaptersSourceOrder(sourceChapters).executeAsBlocking() // Set this manga as updated since chapters were changed - val newestChapter = db.getChapters(manga).executeAsBlocking().maxBy { it.date_upload } - val dateFetch = newestChapter?.date_upload ?: manga.last_update - if (dateFetch == 0L) { - if (toAdd.isNotEmpty()) { - manga.last_update = Date().time - } - } else { - manga.last_update = dateFetch - } + manga.last_update = Date().time db.updateLastUpdated(manga).executeAsBlocking() }