[Android] Notify video adapter on clear

Geoffrey Métais git at videolan.org
Mon Mar 9 11:10:23 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Mar  9 10:41:02 2015 +0100| [478277e297efb27c72c21613316349430cf67d23] | committer: Geoffrey Métais

Notify video adapter on clear

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
index 9331fbb..27b1a7c 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
@@ -420,8 +420,8 @@ public class VideoGridFragment extends BrowserFragment implements ISortable, IVi
         else
             Log.w(TAG, "Can't generate thumbnails, the thumbnailer is missing");
 
-        mVideoAdapter.setNotifyOnChange(false);
         mVideoAdapter.clear();
+        mVideoAdapter.notifyDataSetChanged();
 
         if (itemList.size() > 0) {
             new Thread(new Runnable() {



More information about the Android mailing list