[Android] Playlists: don't 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> | Mon Nov 25 11:36:57 2024 +0100| [b7c9fbc74e69ee7ed3bdd51fc9a4ebe778164eb0] | committer: Nicolas Pomepuy

Playlists: don't respect audio playlist mode

Playlists can have both video and audio, because of this the setting
should not be taken into account

> https://code.videolan.org/videolan/vlc-android/commit/b7c9fbc74e69ee7ed3bdd51fc9a4ebe778164eb0
---

 .../vlc-android/src/org/videolan/vlc/gui/HeaderMediaListActivity.kt     | 2 +-
 1 file changed, 1 insertion(+), 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 5600a550f3..3da7d6409d 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,7 @@ open class HeaderMediaListActivity : AudioPlayerContainerActivity(), IEventsHand
             invalidateActionMode()
         } else {
             if (searchView.visibility == View.VISIBLE) UiTools.setKeyboardVisibility(v, false)
-            if (Settings.getInstance(this).getBoolean(FORCE_PLAY_ALL_AUDIO, false))
+            if (isPlaylist || 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