pull/1606/head
kunfei 3 years ago
parent dd5f5a1abe
commit a23a40a933
  1. 3
      app/src/main/java/io/legado/app/ui/book/toc/ChapterListAdapter.kt

@ -19,12 +19,13 @@ import io.legado.app.utils.visible
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers.IO
import kotlinx.coroutines.launch
import java.util.concurrent.ConcurrentHashMap
class ChapterListAdapter(context: Context, val callback: Callback) :
RecyclerAdapter<BookChapter, ItemChapterListBinding>(context) {
val cacheFileNames = hashSetOf<String>()
val displayTileMap = hashMapOf<Int, String>()
val displayTileMap = ConcurrentHashMap<Int, String>()
val diffCallBack = object : DiffUtil.ItemCallback<BookChapter>() {
override fun areItemsTheSame(

Loading…
Cancel
Save