[Android] Do not update video list while ML is working

Geoffrey Métais git at videolan.org
Mon Feb 12 15:02:02 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Feb 12 12:14:19 2018 +0100| [afe6a922904baefab8b0e6e87e5d04e681b04921] | committer: Geoffrey Métais

Do not update video list while ML is working

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

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

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 868a73067..59e3ad66b 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
@@ -150,8 +150,7 @@ public class VideoGridFragment extends SortableFragment<VideoListAdapter> implem
     @Override
     public void onResume() {
         super.onResume();
-        if (restart)
-            updateList();
+        if (restart && !mMediaLibrary.isWorking()) updateList();
     }
 
     private boolean restart = false;



More information about the Android mailing list