Album/playlist: respect audio playlist mode

Playing a media from HeaderMedialistActivity should respect the
audio playlist mode setting
This commit is contained in:
Duncan McNamara 2024-11-21 14:54:14 +01:00 committed by Nicolas Pomepuy
parent 7c5f6795b8
commit 7d714f3a06

View File

@ -342,7 +342,10 @@ open class HeaderMediaListActivity : AudioPlayerContainerActivity(), IEventsHand
invalidateActionMode()
} else {
if (searchView.visibility == View.VISIBLE) UiTools.setKeyboardVisibility(v, false)
MediaUtils.playTracks(this, viewModel.tracksProvider, position)
if (Settings.getInstance(this).getBoolean(FORCE_PLAY_ALL_AUDIO, false))
MediaUtils.playTracks(this, viewModel.tracksProvider, position)
else
MediaUtils.openMedia(this, item as MediaWrapper)
}
}