pull/32/head
GKF 6 years ago
parent 989431dc14
commit ab951e3d2b
  1. 5
      app/src/main/java/io/legado/app/ui/main/findbook/FindBookFragment.kt

@ -7,13 +7,13 @@ import androidx.lifecycle.LiveData
import androidx.lifecycle.Observer
import androidx.paging.LivePagedListBuilder
import androidx.paging.PagedList
import com.google.android.flexbox.FlexDirection
import com.google.android.flexbox.FlexboxLayoutManager
import io.legado.app.App
import io.legado.app.R
import io.legado.app.base.BaseFragment
import io.legado.app.data.entities.Book
import io.legado.app.data.entities.BookSource
import io.legado.app.lib.theme.ATH
import io.legado.app.lib.theme.ThemeStore
import kotlinx.android.synthetic.main.fragment_find_book.*
import kotlinx.android.synthetic.main.view_title_bar.*
@ -33,6 +33,7 @@ class FindBookFragment : BaseFragment(R.layout.fragment_find_book) {
}
private fun initRecyclerView() {
ATH.setEdgeEffectColor(rv_find, ThemeStore.primaryColor(rv_find.context))
rv_find.layoutManager = FlexboxLayoutManager(context)
adapter = FindBookAdapter()
rv_find.adapter = adapter

Loading…
Cancel
Save