From f3922f0e320ca3c09c2e09e1cf3cf079bdbaa2f5 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 19 Aug 2019 17:58:32 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/data/entities/Book.kt | 6 +++--- .../java/io/legado/app/model/webbook/BookChapterList.kt | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/legado/app/data/entities/Book.kt b/app/src/main/java/io/legado/app/data/entities/Book.kt index b7b2e3e34..ebd007a10 100644 --- a/app/src/main/java/io/legado/app/data/entities/Book.kt +++ b/app/src/main/java/io/legado/app/data/entities/Book.kt @@ -34,14 +34,14 @@ data class Book( var type: Int = 0, // @BookType var group: Int = 0, // 自定义分组索引号 var latestChapterTitle: String? = null, // 最新章节标题 - var latestChapterTime: Long = 0, // 最新章节标题更新时间 - var lastCheckTime: Long = 0, // 最近一次更新书籍信息的时间 + var latestChapterTime: Long = System.currentTimeMillis(), // 最新章节标题更新时间 + var lastCheckTime: Long = System.currentTimeMillis(), // 最近一次更新书籍信息的时间 var lastCheckCount: Int = 0, // 最近一次发现新章节的数量 var totalChapterNum: Int = 0, // 书籍目录总数 var durChapterTitle: String? = null, // 当前章节名称 var durChapterIndex: Int = 0, // 当前章节索引 var durChapterPos: Int = 0, // 当前阅读的进度(首行字符的索引位置) - var durChapterTime: Long = 0, // 最近一次阅读书籍的时间(打开正文的时间) + var durChapterTime: Long = System.currentTimeMillis(), // 最近一次阅读书籍的时间(打开正文的时间) var wordCount: String? = null, var canUpdate: Boolean = true, // 刷新书架时更新书籍信息 var order: Int = 0, // 手动排序 diff --git a/app/src/main/java/io/legado/app/model/webbook/BookChapterList.kt b/app/src/main/java/io/legado/app/model/webbook/BookChapterList.kt index 03e29ea95..57c8635ba 100644 --- a/app/src/main/java/io/legado/app/model/webbook/BookChapterList.kt +++ b/app/src/main/java/io/legado/app/model/webbook/BookChapterList.kt @@ -98,6 +98,7 @@ object BookChapterList { for ((index, item) in chapterList.withIndex()) { item.index = index } + book.latestChapterTitle = chapterList.last().title return chapterList }