[Android] Ensure media will be transformed into Storage item

Geoffrey Métais git at videolan.org
Thu Mar 9 14:13:17 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Mar  9 14:12:01 2017 +0100| [892516b7eb2ac593b56a85d6c058107d1287407d] | committer: Geoffrey Métais

Ensure media will be transformed into Storage item

> https://code.videolan.org/videolan/vlc-android/commit/892516b7eb2ac593b56a85d6c058107d1287407d
---

 .../src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.java       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.java b/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.java
index b0bdb6b..58a4e38 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.java
@@ -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) {



More information about the Android mailing list