@ -86,7 +86,7 @@ class BookSourceFragment : BaseFragment(R.layout.fragment_book_source), BookSour
App.db.bookSourceDao().observeAll()
else
App.db.bookSourceDao().observeSearch(searchKey)
bookSourceLiveDate = LivePagedListBuilder(dataFactory, 30).build()
bookSourceLiveDate = LivePagedListBuilder(dataFactory, 2000).build()
bookSourceLiveDate?.observe(viewLifecycleOwner, Observer { adapter.submitList(it) })
}
@ -41,7 +41,7 @@ class FindBookFragment : BaseFragment(R.layout.fragment_find_book) {
private fun initData() {
findLiveData?.removeObservers(viewLifecycleOwner)
findLiveData = LivePagedListBuilder(App.db.bookSourceDao().observeFind(), 10).build()
findLiveData = LivePagedListBuilder(App.db.bookSourceDao().observeFind(), 2000).build()
findLiveData?.observe(viewLifecycleOwner, Observer { adapter.submitList(it) })