[Android] Clear thumbnail jobs before adding new ones

Sébastien Toque git at videolan.org
Mon Jul 2 21:02:04 CEST 2012


android | branch: master | Sébastien Toque <xilasz at gmail.com> | Mon Jul  2 19:47:20 2012 +0200| [8f0c02fdbd032c27612654e8fabf85c5a3a90d7b] | committer: Sébastien Toque

Clear thumbnail jobs before adding new ones

This prevents multiple jobs on the same media

> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=8f0c02fdbd032c27612654e8fabf85c5a3a90d7b
---

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoListFragment.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoListFragment.java
index a3878e2..683b554 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoListFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoListFragment.java
@@ -224,6 +224,7 @@ public class VideoListFragment extends SherlockListFragment implements ISortable
 
         List<Media> itemList = mMediaLibrary.getVideoItems();
 
+        mThumbnailerManager.clearJobs();
         mVideoAdapter.clear();
 
         if (itemList.size() > 0) {



More information about the Android mailing list