[Android] Play all media files from a folder
Geoffrey Métais
git at videolan.org
Tue Feb 16 15:12:06 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb 16 13:08:05 2016 +0100| [f7e0a4bd39152b024f15a92a8f7f097b34bfd638] | committer: Geoffrey Métais
Play all media files from a folder
> https://code.videolan.org/videolan/vlc-android/commit/f7e0a4bd39152b024f15a92a8f7f097b34bfd638
---
vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
index 480db4e..5437ec0 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
@@ -370,9 +370,7 @@ public class BaseBrowserAdapter extends RecyclerView.Adapter<RecyclerView.ViewH
if (mw.getType() == MediaWrapper.TYPE_DIR)
fragment.browse(mw, holder.getAdapterPosition(), true);
- else if (mw.getType() == MediaWrapper.TYPE_VIDEO)
- MediaUtils.openMedia(holder.itemView.getContext(), mw);
- else if (mw.getType() == MediaWrapper.TYPE_AUDIO) {
+ else if (mw.getType() == MediaWrapper.TYPE_AUDIO || mw.getType() == MediaWrapper.TYPE_VIDEO) {
int position = 0;
LinkedList<MediaWrapper> mediaLocations = new LinkedList<MediaWrapper>();
MediaWrapper mediaItem;
More information about the Android
mailing list