From d9a57163618ec6cb6b0c766daaf6eb0e7100df42 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 10 May 2020 10:10:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/legado/app/ui/book/source/manage/BookSourceViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceViewModel.kt b/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceViewModel.kt index 99e3fc387..3ffd37543 100644 --- a/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceViewModel.kt @@ -31,7 +31,7 @@ class BookSourceViewModel(application: Application) : BaseViewModel(application) fun bottomSource(vararg sources: BookSource) { execute { - val maxOrder = App.db.bookSourceDao().minOrder + 1 + val maxOrder = App.db.bookSourceDao().maxOrder + 1 sources.forEachIndexed { index, bookSource -> bookSource.customOrder = maxOrder + index }