feat: 优化

pull/219/head
kunfei 5 years ago
parent 102cd92f4e
commit d9a5716361
  1. 2
      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) { fun bottomSource(vararg sources: BookSource) {
execute { execute {
val maxOrder = App.db.bookSourceDao().minOrder + 1 val maxOrder = App.db.bookSourceDao().maxOrder + 1
sources.forEachIndexed { index, bookSource -> sources.forEachIndexed { index, bookSource ->
bookSource.customOrder = maxOrder + index bookSource.customOrder = maxOrder + index
} }

Loading…
Cancel
Save