This commit is contained in:
kunfei
2022-02-11 18:35:05 +08:00
parent c59e28040e
commit f73418bc54
2 changed files with 2 additions and 1 deletions
@@ -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 }