From 28f63d1c19f5cd5958971ff8de68928138e8e296 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 30 Mar 2022 08:15:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/ui/book/local/ImportBookViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/local/ImportBookViewModel.kt b/app/src/main/java/io/legado/app/ui/book/local/ImportBookViewModel.kt index cfb23fb1e..99d7f6c6d 100644 --- a/app/src/main/java/io/legado/app/ui/book/local/ImportBookViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/book/local/ImportBookViewModel.kt @@ -61,7 +61,7 @@ class ImportBookViewModel(application: Application) : BaseViewModel(application) compareBy({ !it.isDir }, { -it.lastModified }, { it.name }) ) 1 -> docList.sortedWith( - compareBy({ !it.isDir }, { it.size }, { it.name }) + compareBy({ !it.isDir }, { -it.size }, { it.name }) ) else -> docList.sortedWith( compareBy({ !it.isDir }, { it.name })