[Android] Album/playlist: respect audio playlist mode
Duncan McNamara
git at videolan.org
Mon Nov 25 10:45:01 UTC 2024
vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Thu Nov 21 14:54:14 2024 +0100| [7d714f3a0655579a63f92f3bf6d54252226b0be1] | committer: Nicolas Pomepuy
Album/playlist: respect audio playlist mode
Playing a media from HeaderMedialistActivity should respect the
audio playlist mode setting
> https://code.videolan.org/videolan/vlc-android/commit/7d714f3a0655579a63f92f3bf6d54252226b0be1
---
.../vlc-android/src/org/videolan/vlc/gui/HeaderMediaListActivity.kt | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/HeaderMediaListActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/HeaderMediaListActivity.kt
index f883e58874..5600a550f3 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/HeaderMediaListActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/HeaderMediaListActivity.kt
@@ -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)
}
}
More information about the Android
mailing list