Skip to content
Snippets Groups Projects
Commit 73bf16bd authored by Robert Stone's avatar Robert Stone Committed by Nicolas Pomepuy
Browse files

Scroll to the position of the current song, even if hidden or collapsed.

parent 0f6a2260
No related branches found
No related tags found
1 merge request!1034Update shuffle strategy and android auto behavior
Pipeline #124665 passed with stage
in 17 minutes and 58 seconds
......@@ -416,9 +416,7 @@ class AudioPlayer : Fragment(), PlaylistAdapter.IPlayer, TextWatcher, IAudioPlay
fun shouldHidePlayProgress() = abRepeatAddMarker.visibility != View.GONE || (::bookmarkListDelegate.isInitialized && bookmarkListDelegate.visible) || playlistModel.medias?.size ?: 0 < 2
override fun onSelectionSet(position: Int) {
if (playerState != BottomSheetBehavior.STATE_COLLAPSED && playerState != BottomSheetBehavior.STATE_HIDDEN) {
binding.songsList.scrollToPosition(position)
}
binding.songsList.scrollToPosition(position)
}
override fun playItem(position: Int, item: MediaWrapper) {
......
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