Last active
February 6, 2023 11:59
-
-
Save ademirqueiroga/d6f6831d506b47631ec08c0ec784bbdf to your computer and use it in GitHub Desktop.
PlaybackVideoFragment up next item click listener
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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