[Android] Always update playlists

Geoffrey Métais git at videolan.org
Tue Mar 15 15:48:20 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Mar 15 15:10:11 2016 +0100| [2fbc31040f3b67ab6d2b6e78c2abce2427db3494] | committer: Geoffrey Métais

Always update playlists

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

 vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
index fc09692..9044b30 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
@@ -279,6 +279,7 @@ public class AudioBrowserFragment extends MediaBrowserFragment implements SwipeR
                 mSwipeRefreshLayout.setEnabled(current.getFirstVisiblePosition() == 0);
             }
         });
+        updatePlaylists();
     }
 
     private void focusHelper(final boolean idIsEmpty, final int listId) {
@@ -905,6 +906,10 @@ public class AudioBrowserFragment extends MediaBrowserFragment implements SwipeR
         }
     };
 
+    private void updatePlaylists() {
+        VLCApplication.runBackground(updatePlaylists);
+    }
+
     AudioBrowserListAdapter.ContextPopupMenuListener mContextPopupMenuListener
             = new AudioBrowserListAdapter.ContextPopupMenuListener() {
 



More information about the Android mailing list