Fixed unending loading screen

This commit is contained in:
Pupil
2020-02-16 20:11:20 +09:00
parent 5dea35343b
commit bb6fadc182
2 changed files with 7 additions and 10 deletions

View File

@@ -83,15 +83,6 @@ class ReaderAdapter(private val context: Context,
var onItemClickListener : ((Int) -> (Unit))? = null
init {
CoroutineScope(Dispatchers.IO).launch {
reader = Cache(context).getReader(galleryID)
launch(Dispatchers.Main) {
notifyDataSetChanged()
}
}
}
class ViewHolder(val view: View) : RecyclerView.ViewHolder(view)
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {