[Android] Do not generate separators during filtering

Geoffrey Métais git at videolan.org
Tue Jan 31 11:37:19 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jan 31 10:44:23 2017 +0100| [95158bb4dd0a390f67b4e0dcb5c6c7494f00f95a] | committer: Geoffrey Métais

Do not generate separators during filtering

> https://code.videolan.org/videolan/vlc-android/commit/95158bb4dd0a390f67b4e0dcb5c6c7494f00f95a
---

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java
index e39bfab..96aa1b6 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java
@@ -277,7 +277,7 @@ public class AudioBrowserAdapter extends RecyclerView.Adapter<AudioBrowserAdapte
         VLCApplication.runOnMainThread(new Runnable() {
             @Override
             public void run() {
-                final MediaLibraryItem[] newList = hasSections() ? generateList(items) : items;
+                final MediaLibraryItem[] newList = mOriginalDataSet == null && hasSections() ? generateList(items) : items;
                 final DiffUtil.DiffResult result = DiffUtil.calculateDiff(new MediaItemDiffCallback(mDataList, newList), AndroidUtil.isICSOrLater());
                 addAll(newList, false);
                 result.dispatchUpdatesTo(AudioBrowserAdapter.this);



More information about the Android mailing list