Skip to content

Instantly share code, notes, and snippets.

@ademirqueiroga
Created February 6, 2023 10:35
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/f5cc3b46f6dc716b19c78f66a97a94de to your computer and use it in GitHub Desktop.
Save ademirqueiroga/f5cc3b46f6dc716b19c78f66a97a94de to your computer and use it in GitHub Desktop.
AwesomeTransportControlGlue.kt secondary actions
private val thumbsUpAction = PlaybackControlsRow.ThumbsUpAction(context).apply {
index = PlaybackControlsRow.ThumbsUpAction.INDEX_OUTLINE
}
private val shuffleAction = PlaybackControlsRow.ShuffleAction(context)
private val repeatAction = PlaybackControlsRow.RepeatAction(context)
private val myListAction = MyListAction(context)
override fun onCreateSecondaryActions(secondaryActionsAdapter: ArrayObjectAdapter) {
secondaryActionsAdapter.add(thumbsUpAction)
secondaryActionsAdapter.add(shuffleAction)
secondaryActionsAdapter.add(repeatAction)
secondaryActionsAdapter.add(myListAction)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment