[Android] Always update playlists

Geoffrey Métais git at videolan.org
Tue Mar 15 16:08:13 CET 2016


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

Always update playlists

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

 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