This commit is contained in:
kunfei committed 2022-02-11 18:35:05 +08:00
1 parent c59e28040e
commit f73418bc54
2 files changed
+2 -1

No files matched your search

@@ -158,7 +158,7 @@ class CacheActivity : VMBaseActivity<ActivityCacheBookBinding, CacheViewModel>()
else -> appDb.bookDao.flowByGroup(groupId)
}.collect { list ->
val booksDownload = list.filter {
it.isOnLineTxt()
it.type == 0
}
val books = when (getPrefInt(PreferKey.bookshelfSort)) {
1 -> booksDownload.sortedByDescending { it.latestChapterTime }