优化代码

pull/768/head
gedoor 4 years ago
parent f259380aaf
commit 7cbb2038d2
  1. 2
      app/src/main/java/io/legado/app/base/adapter/DiffRecyclerAdapter.kt
  2. 2
      app/src/main/java/io/legado/app/base/adapter/RecyclerAdapter.kt

@ -26,8 +26,6 @@ abstract class DiffRecyclerAdapter<ITEM, VB : ViewBinding>(protected val context
}
}
private val lock = Object()
private var itemClickListener: ((holder: ItemViewHolder, item: ITEM) -> Unit)? = null
private var itemLongClickListener: ((holder: ItemViewHolder, item: ITEM) -> Boolean)? = null

@ -26,8 +26,6 @@ abstract class RecyclerAdapter<ITEM, VB : ViewBinding>(protected val context: Co
private val items: MutableList<ITEM> = mutableListOf()
private val lock = Object()
private var itemClickListener: ((holder: ItemViewHolder, item: ITEM) -> Unit)? = null
private var itemLongClickListener: ((holder: ItemViewHolder, item: ITEM) -> Boolean)? = null

Loading…
Cancel
Save