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

Geoffrey Métais git at videolan.org
Wed Feb 14 17:36:20 CET 2018


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

Do not update video list while ML is working

(cherry picked from commit afe6a922904baefab8b0e6e87e5d04e681b04921)

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

 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