Commit 1e345af2 authored by Geoffrey Métais's avatar Geoffrey Métais

Advertise protocole for network favs & servers

parent aece30f6
......@@ -413,6 +413,7 @@ public class MainTvActivity extends BaseTvActivity implements IVideoBrowser, OnI
if (!favs.isEmpty()) {
for (MediaWrapper fav : favs) {
fav.setDescription(fav.getUri().getScheme());
mBrowserAdapter.add(fav);
}
}
......
......@@ -37,6 +37,8 @@ public class NetworkBrowserFragment extends SortedBrowserFragment {
protected void addMedia(Media media){
MediaWrapper mw = new MediaWrapper(media);
if (mUri == null)
mw.setDescription(mw.getUri().getScheme());
int type = mw.getType();
if (type != MediaWrapper.TYPE_AUDIO && type != MediaWrapper.TYPE_VIDEO && type != MediaWrapper.TYPE_DIR)
return;
......
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