From c5d84b4f2408b043b7a74ac2a263e0564f2e4b5a Mon Sep 17 00:00:00 2001 From: Andreas Date: Fri, 17 Jun 2022 23:29:07 +0200 Subject: [PATCH] Fix History not being added when restoring backup (#7324) --- .../tachiyomi/data/backup/full/FullBackupManager.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/FullBackupManager.kt b/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/FullBackupManager.kt index 8c5074e2ff..7fc7309ca6 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/FullBackupManager.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/backup/full/FullBackupManager.kt @@ -311,10 +311,12 @@ class FullBackupManager(context: Context) : AbstractBackupManager(context) { handler .awaitOneOrNull { chaptersQueries.getChapterByUrl(url) } ?.let { - HistoryUpdate( - chapterId = it._id, - readAt = Date(lastRead), - sessionReadDuration = 0, + toUpdate.add( + HistoryUpdate( + chapterId = it._id, + readAt = Date(lastRead), + sessionReadDuration = 0, + ), ) } }