[Android] BaseBrowserAdapter: always use openMedia
Thomas Guillem
git at videolan.org
Thu May 26 16:01:07 CEST 2016
vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu May 26 15:59:45 2016 +0200| [f190d4a3f8552dd40f7d686664013f480ac199af] | committer: Thomas Guillem
BaseBrowserAdapter: always use openMedia
In order to keep slaves inside MediaWrapper.
> https://code.videolan.org/videolan/vlc-android/commit/f190d4a3f8552dd40f7d686664013f480ac199af
---
.../src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java | 7 ++-----
1 file changed, 2 insertions(+), 5 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 e499eca..c7dad55 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserAdapter.java
@@ -398,11 +398,8 @@ 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_AUDIO || mw.getType() == MediaWrapper.TYPE_VIDEO) {
- MediaUtils.openMedia(v.getContext(), mw);
+ else
+ MediaUtils.openMedia(v.getContext(), mw);
- } else {
- MediaUtils.openStream(holder.itemView.getContext(), mw.getLocation());
- }
}
}
More information about the Android
mailing list