[Android] [PATCH 2/3] Open all media from current folder in a playlist

Geoffrey Métais geoffrey.metais at gmail.com
Tue Nov 24 17:25:28 CET 2015


---
 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 c968c11..828e8a9 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
@@ -317,9 +317,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(v.getContext(), mw);
-        else  if (mw.getType() == MediaWrapper.TYPE_AUDIO) {
+        else if (mw.getType() == MediaWrapper.TYPE_VIDEO || mw.getType() == MediaWrapper.TYPE_AUDIO) {
             int position = 0;
             LinkedList<MediaWrapper> mediaLocations = new LinkedList<MediaWrapper>();
             MediaWrapper mediaItem;
-- 
2.5.0



More information about the Android mailing list