diff --git a/app/src/main/java/io/legado/app/data/dao/BookDao.kt b/app/src/main/java/io/legado/app/data/dao/BookDao.kt index 70091e69d..ba1d7e67e 100644 --- a/app/src/main/java/io/legado/app/data/dao/BookDao.kt +++ b/app/src/main/java/io/legado/app/data/dao/BookDao.kt @@ -35,7 +35,7 @@ interface BookDao { @get:Query("SELECT * FROM books") val allBooks: List - @get:Query("SELECT * FROM books ORDER BY durChapterTime DESC limit 1") + @get:Query("SELECT * FROM books where type = 0 ORDER BY durChapterTime DESC limit 1") val lastReadBook: Book? @get:Query("SELECT bookUrl FROM books")