Created
February 6, 2023 10:35
-
-
Save ademirqueiroga/f5cc3b46f6dc716b19c78f66a97a94de to your computer and use it in GitHub Desktop.
AwesomeTransportControlGlue.kt secondary actions
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
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