From 3f19f14b7abd05169994d871624aae8297b0a8d6 Mon Sep 17 00:00:00 2001 From: ag2s20150909 Date: Sat, 16 Apr 2022 19:03:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B9=A6=E6=BA=90=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=B8=BA=E5=9B=BE=E7=89=87=E7=9A=84=E4=B8=8D=E5=9C=A8?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E7=95=8C=E9=9D=A2=E5=87=BA=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/ui/book/cache/CacheActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/cache/CacheActivity.kt b/app/src/main/java/io/legado/app/ui/book/cache/CacheActivity.kt index 32a11dfe3..9d9559b73 100644 --- a/app/src/main/java/io/legado/app/ui/book/cache/CacheActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/cache/CacheActivity.kt @@ -10,6 +10,7 @@ import io.legado.app.R import io.legado.app.base.VMBaseActivity import io.legado.app.constant.AppConst import io.legado.app.constant.AppConst.charsets +import io.legado.app.constant.BookType import io.legado.app.constant.EventBus import io.legado.app.constant.PreferKey import io.legado.app.data.appDb @@ -160,7 +161,7 @@ class CacheActivity : VMBaseActivity() else -> appDb.bookDao.flowByGroup(groupId) }.conflate().map { books -> val booksDownload = books.filter { - it.type == 0 + it.type == BookType.default || it.type == BookType.image } when (getPrefInt(PreferKey.bookshelfSort)) { 1 -> booksDownload.sortedByDescending { it.latestChapterTime }