Skip to content
Snippets Groups Projects
Commit 892516b7 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Ensure media will be transformed into Storage item

parent 5d6d6596
No related branches found
No related tags found
No related merge requests found
......@@ -66,12 +66,12 @@ class StorageBrowserAdapter extends BaseBrowserAdapter {
vh.setContextMenuListener();
}
public void addItem(MediaLibraryItem item, boolean top) {
public void addItem(MediaLibraryItem item, boolean top, int position) {
if (item.getItemType() == MediaLibraryItem.TYPE_MEDIA)
item = new Storage(((MediaWrapper)item).getUri());
else if (item.getItemType() != MediaLibraryItem.TYPE_STORAGE)
return;
super.addItem(item, top);
super.addItem(item, top, position);
}
private void removeDir(final String path) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment