Commit 455a98c5 authored by Geoffrey Métais's avatar Geoffrey Métais

Try to open unknow files from browser

fixes #14483
parent af651448
......@@ -120,7 +120,7 @@ public class BaseBrowserAdapter extends RecyclerView.Adapter<RecyclerView.ViewH
fragment.browse(mw, holder.getAdapterPosition());
else if (mw.getType() == MediaWrapper.TYPE_VIDEO)
Util.openMedia(v.getContext(), mw);
else {
else if (mw.getType() == MediaWrapper.TYPE_AUDIO) {
int position = 0;
LinkedList<MediaWrapper> mediaLocations = new LinkedList<MediaWrapper>();
MediaWrapper mediaItem;
......@@ -134,6 +134,8 @@ public class BaseBrowserAdapter extends RecyclerView.Adapter<RecyclerView.ViewH
}
}
Util.openList(v.getContext(), mediaLocations, position);
} else {
Util.openStream(v.getContext(), mw.getLocation());
}
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment