[Android] Fix parsed medialists not stored

Geoffrey Métais git at videolan.org
Mon May 4 16:43:06 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon May  4 15:47:36 2015 +0200| [e9acd0c590f7b16060c57f1285bf44272f9f7b43] | committer: Geoffrey Métais

Fix parsed medialists not stored

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=e9acd0c590f7b16060c57f1285bf44272f9f7b43
---

 .../src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java        |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
index fa2d859..365d298 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
@@ -497,7 +497,7 @@ public abstract class BaseBrowserFragment extends MediaBrowserFragment implement
             if (!TextUtils.equals(holderText, "")) {
                 mAdapter.setDescription(mCurrentParsedPosition, holderText);
                 directories.addAll(files);
-                mMediaLists.append(mCurrentParsedPosition, directories);
+                mMediaLists.put(mCurrentParsedPosition, new ArrayList<MediaWrapper>(directories));
             }
             while (++mCurrentParsedPosition < mAdapter.getItemCount()){ //skip media that are not browsable
                 if (mAdapter.getItem(mCurrentParsedPosition) instanceof MediaWrapper) {



More information about the Android mailing list