|
|
@ -141,7 +141,7 @@ class BookshelfFragment : VMBaseFragment<BookshelfViewModel>(R.layout.fragment_b |
|
|
|
noGroupLiveData?.removeObservers(viewLifecycleOwner) |
|
|
|
noGroupLiveData?.removeObservers(viewLifecycleOwner) |
|
|
|
noGroupLiveData = App.db.bookDao().observeNoGroupSize() |
|
|
|
noGroupLiveData = App.db.bookDao().observeNoGroupSize() |
|
|
|
noGroupLiveData?.observe(viewLifecycleOwner, Observer { |
|
|
|
noGroupLiveData?.observe(viewLifecycleOwner, Observer { |
|
|
|
if (it > 0 && !showGroupNone) { |
|
|
|
if (it > 0 && !showGroupNone && AppConfig.bookGroupNoneShow) { |
|
|
|
showGroupNone = true |
|
|
|
showGroupNone = true |
|
|
|
upGroup() |
|
|
|
upGroup() |
|
|
|
} else if (it == 0 && showGroupNone) { |
|
|
|
} else if (it == 0 && showGroupNone) { |
|
|
|