[Android] [PATCH 02/10] Open all media from current folder in a playlist

Geoffrey Métais geoffrey.metais at gmail.com
Fri Nov 27 13:24:57 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 9516a00..0a562a4 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