feat: 优化

pull/226/head
gedoor 5 years ago
parent f5733bbf3e
commit 51469c9e01
  1. 4
      app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceActivity.kt

@ -96,18 +96,22 @@ class BookSourceActivity : VMBaseActivity<BookSourceViewModel>(R.layout.activity
R.id.menu_sort_manual -> {
item.isChecked = true
sort = 0
initLiveDataBookSource(search_view.query?.toString())
}
R.id.menu_sort_auto -> {
item.isChecked = true
sort = 2
initLiveDataBookSource(search_view.query?.toString())
}
R.id.menu_sort_pin_yin -> {
item.isChecked = true
sort = 3
initLiveDataBookSource(search_view.query?.toString())
}
R.id.menu_sort_url -> {
item.isChecked = true
sort = 4
initLiveDataBookSource(search_view.query?.toString())
}
}
if (item.groupId == R.id.source_group) {

Loading…
Cancel
Save