[Android] Audio browser: add missing list clears on update

Adrien Maglo git at videolan.org
Thu Nov 28 17:28:22 CET 2013


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Thu Nov 28 17:28:14 2013 +0100| [f1c3f5063728bd62e547227954c9eeb18985deca] | committer: Adrien Maglo

Audio browser: add missing list clears on update

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

 .../src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java    |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
index 38f9e09..5dfefd3 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
@@ -151,6 +151,9 @@ public class AudioAlbumsSongsFragment extends SherlockFragment {
         if (mediaList == null)
             return;
 
+        mAlbumsAdapter.clear();
+        mSongsAdapter.clear();
+
         Collections.sort(mediaList, mComparators.byAlbum);
         for (int i = 0; i < mediaList.size(); ++i) {
             Media media = mediaList.get(i);



More information about the Android mailing list