Преглед изворни кода

Fix read duration statistic getting inflated when restoring history

arkon пре 1 година
родитељ
комит
950b4a6c90

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/data/backup/restore/restorers/MangaRestorer.kt

@@ -328,7 +328,7 @@ class MangaRestorer(
                 readAt = max(item.readAt?.time ?: 0L, dbHistory.last_read?.time ?: 0L)
                     .takeIf { it > 0L }
                     ?.let { Date(it) },
-                readDuration = max(item.readDuration, dbHistory.time_read),
+                readDuration = max(item.readDuration, dbHistory.time_read) - dbHistory.time_read,
             )
         }