Skip to content
Snippets Groups Projects
Commit 357dc149 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Fix focus lost on video tracks on TV

parent a0f588af
No related branches found
No related tags found
1 merge request!1698Fix focus lost on video tracks on TV
Pipeline #320955 passed with stage
in 20 minutes and 34 seconds
......@@ -66,8 +66,10 @@ class TrackAdapter(private val tracks: Array<VlcTrack>, var selectedTrack: VlcTr
init {
itemView.setOnClickListener {
val oldSelectedIndex = tracks.indexOf(selectedTrack)
selectedTrack = tracks[layoutPosition]
notifyDataSetChanged()
notifyItemChanged(oldSelectedIndex)
notifyItemChanged(layoutPosition)
trackSelectedListener.invoke(tracks[layoutPosition])
}
}
......
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