feat: 优化代码

pull/141/head
kunfei 5 years ago
parent 36e3b21cdd
commit a6a0ee411d
  1. 4
      app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt

@ -109,7 +109,9 @@ class BookshelfFragment : VMBaseFragment<BookshelfViewModel>(R.layout.fragment_b
synchronized(this) {
tab_layout.removeOnTabSelectedListener(this)
bookGroups.clear()
bookGroups.add(AppConst.bookGroupAll)
if (AppConfig.bookGroupAllShow) {
bookGroups.add(AppConst.bookGroupAll)
}
if (AppConfig.bookGroupLocalShow) {
bookGroups.add(AppConst.bookGroupLocal)
}

Loading…
Cancel
Save