pull/32/head
gedoor 6 years ago
parent ee0dfd2a24
commit f40f36b66c
  1. 3
      app/src/main/java/io/legado/app/ui/main/booksource/BookSourceFragment.kt

@ -8,7 +8,9 @@ import androidx.lifecycle.LiveData
import androidx.lifecycle.Observer
import androidx.paging.LivePagedListBuilder
import androidx.paging.PagedList
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import io.legado.app.App
import io.legado.app.R
import io.legado.app.base.BaseFragment
@ -45,6 +47,7 @@ class BookSourceFragment : BaseFragment(R.layout.fragment_book_source), BookSour
private fun initRecyclerView() {
recycler_view.layoutManager = LinearLayoutManager(context)
recycler_view.addItemDecoration(DividerItemDecoration(context, LinearLayoutManager.VERTICAL))
adapter = BookSourceAdapter()
adapter.callBack = this
recycler_view.adapter = adapter

Loading…
Cancel
Save