[Android] AlbumSongs: add FORCE_PLAY_ALL_AUDIO check
Duncan McNamara
git at videolan.org
Thu Jun 22 06:18:16 UTC 2023
vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Fri Jun 16 18:24:20 2023 +0200| [db589452baa13d100f289ac13b18d596387709c9] | committer: Nicolas Pomepuy
AlbumSongs: add FORCE_PLAY_ALL_AUDIO check
> https://code.videolan.org/videolan/vlc-android/commit/db589452baa13d100f289ac13b18d596387709c9
---
.../src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.kt | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.kt b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.kt
index 3f8768e75a..99d3163ca3 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.kt
@@ -273,7 +273,10 @@ class AudioAlbumsSongsFragment : BaseAudioBrowser<AlbumSongsViewModel>(), SwipeR
startActivity(i)
} else {
if (inSearchMode()) UiTools.setKeyboardVisibility(v, false)
- MediaUtils.openMedia(v.context, item as MediaWrapper)
+ if (Settings.getInstance(requireContext()).getBoolean(FORCE_PLAY_ALL_AUDIO, false))
+ MediaUtils.playAll(activity, viewModel.tracksProvider, position, false)
+ else
+ MediaUtils.openMedia(v.context, item as MediaWrapper)
}
}
More information about the Android
mailing list