diff --git a/app/src/main/java/io/legado/app/ui/main/booksource/BookSourceAdapter.kt b/app/src/main/java/io/legado/app/ui/main/booksource/BookSourceAdapter.kt index f21f087e9..2e4d14958 100644 --- a/app/src/main/java/io/legado/app/ui/main/booksource/BookSourceAdapter.kt +++ b/app/src/main/java/io/legado/app/ui/main/booksource/BookSourceAdapter.kt @@ -1,14 +1,17 @@ package io.legado.app.ui.main.booksource -import android.content.Context +import android.annotation.SuppressLint +import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.paging.PagedListAdapter import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.RecyclerView +import io.legado.app.R import io.legado.app.data.entities.BookSource +import kotlinx.android.synthetic.main.item_book_source.view.* -class BookSourceAdapter(context : Context) : PagedListAdapter(DIFF_CALLBACK) { +class BookSourceAdapter : PagedListAdapter(DIFF_CALLBACK) { companion object { @@ -25,17 +28,26 @@ class BookSourceAdapter(context : Context) : PagedListAdapter -