Skip to content

Instantly share code, notes, and snippets.

@ademirqueiroga
Last active February 6, 2023 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ademirqueiroga/d6f6831d506b47631ec08c0ec784bbdf to your computer and use it in GitHub Desktop.
Save ademirqueiroga/d6f6831d506b47631ec08c0ec784bbdf to your computer and use it in GitHub Desktop.
PlaybackVideoFragment up next item click listener
setOnItemViewClickedListener { _, item, _, row ->
if (row is ListRow && row.adapter == upNextAdapter) {
val movie = item as Movie
val movieIndexInPlaylist = transportControlGlue.getPlaylist().indexOf(movie)
transportControlGlue.loadMovie(movieIndexInPlaylist)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment