From d1f407d4c28a96256b57f2f0ceac222148cb2736 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 27 Jun 2019 16:24:39 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/main/booksource/BookSourceFragment.kt | 2 +- .../java/io/legado/app/ui/main/findbook/FindBookFragment.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/main/booksource/BookSourceFragment.kt b/app/src/main/java/io/legado/app/ui/main/booksource/BookSourceFragment.kt index fe9f2f261..9a996da91 100644 --- a/app/src/main/java/io/legado/app/ui/main/booksource/BookSourceFragment.kt +++ b/app/src/main/java/io/legado/app/ui/main/booksource/BookSourceFragment.kt @@ -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) }) } diff --git a/app/src/main/java/io/legado/app/ui/main/findbook/FindBookFragment.kt b/app/src/main/java/io/legado/app/ui/main/findbook/FindBookFragment.kt index 0cbdaf6c2..3f59758d2 100644 --- a/app/src/main/java/io/legado/app/ui/main/findbook/FindBookFragment.kt +++ b/app/src/main/java/io/legado/app/ui/main/findbook/FindBookFragment.kt @@ -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) }) } } \ No newline at end of file