Skip to content
Snippets Groups Projects
Commit f1c7a291 authored by adi.bk's avatar adi.bk
Browse files

Use the correct adapter position in click listener

parent 5b7a55af
No related branches found
No related tags found
1 merge request!20Fix for Issue #176 - After adding or removing issues, update the positions in the list
LabCoat @ 46984efc
Subproject commit 46984efc63f0e4eceb355ff362e0dc580c86bf47
Loading
Loading
@@ -29,7 +29,7 @@ class IssueAdapter(private val listener: IssueAdapter.Listener) : RecyclerView.A
TYPE_ITEM -> {
val holder = IssueViewHolder.inflate(parent)
holder.itemView.setOnClickListener { v ->
val position = v.getTag(R.id.list_position) as Int
val position = holder.adapterPosition
listener.onIssueClicked(getValueAt(position))
}
return holder
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment