Commit ed5c4d04 authored by Geoffrey Métais's avatar Geoffrey Métais

Set type Playlist on init from Media

parent e341d2c6
......@@ -141,8 +141,15 @@ public class MediaWrapper implements Parcelable {
}
}
updateMeta(media);
if (mType == TYPE_ALL && media.getType() == Media.Type.Directory)
mType = TYPE_DIR;
if (mType == TYPE_ALL)
switch (media.getType()) {
case Media.Type.Directory:
mType = TYPE_DIR;
break;
case Media.Type.Playlist:
mType = TYPE_PLAYLIST;
break;
}
mSlaves = media.getSlaves();
}
defineType();
......
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