Commit 0b4e4889 by Paktalin

Fixed bug with onClickListener

parent 53ad7bb7
...@@ -22,7 +22,7 @@ class VocabularyAdapter(private val wordItems: List<WordItem>, ...@@ -22,7 +22,7 @@ class VocabularyAdapter(private val wordItems: List<WordItem>,
val wordItem = wordItems[position] val wordItem = wordItems[position]
holder.tvWord.text = wordItem.pojo.word holder.tvWord.text = wordItem.pojo.word
holder.tvTranslation.text = wordItem.pojo.translation holder.tvTranslation.text = wordItem.pojo.translation
holder.tvWord.setOnClickListener { openWordItemInfo(wordItem) } holder.itemView.setOnClickListener { openWordItemInfo(wordItem) }
} }
override fun getItemCount(): Int { override fun getItemCount(): Int {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment