[Android] AudioBrowserListAdapter: add missing calls to notifyDataSetChanged()

Adrien Maglo git at videolan.org
Fri Feb 21 16:52:11 CET 2014


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Fri Feb 21 16:52:03 2014 +0100| [31831bf9eebdc87667aa5ad1617120d49f22ca3e] | committer: Adrien Maglo

AudioBrowserListAdapter: add missing calls to notifyDataSetChanged()

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java
index b6af497..731a90f 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java
@@ -96,6 +96,7 @@ public class AudioBrowserListAdapter extends BaseAdapter {
             mMediaItemMap.put(title, item);
             mItems.add(item);
         }
+        notifyDataSetChanged();
     }
 
     public void addLeterSeparators() {
@@ -123,11 +124,13 @@ public class AudioBrowserListAdapter extends BaseAdapter {
                 firstSeparator = false;
             }
         }
+        notifyDataSetChanged();
     }
 
     public void addSeparator(String title) {
         ListItem item = new ListItem(title, null, null, true);
         mItems.add(item);
+        notifyDataSetChanged();
     }
 
     /**
@@ -156,6 +159,7 @@ public class AudioBrowserListAdapter extends BaseAdapter {
     public void clear() {
         mMediaItemMap.clear();
         mItems.clear();
+        notifyDataSetChanged();
     }
 
     @Override



More information about the Android mailing list