[Android] Update medialist info after an expand

Geoffrey Métais git at videolan.org
Fri Feb 15 15:56:53 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Feb 15 15:50:16 2019 +0100| [e6f537416aeb92c5dd1c3746759d88f3bce2eef9] | committer: Geoffrey Métais

Update medialist info after an expand

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

 vlc-android/src/org/videolan/vlc/PlaybackService.kt       | 2 +-
 vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.kt b/vlc-android/src/org/videolan/vlc/PlaybackService.kt
index 44a76d525..e26abc6ac 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.kt
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.kt
@@ -860,7 +860,7 @@ class PlaybackService : MediaBrowserServiceCompat(), CoroutineScope, LifecycleOw
         broadcastMetadata()
     }
 
-    private fun onMediaListChanged() {
+    fun onMediaListChanged() {
         executeUpdate()
         updateMediaQueue()
     }
diff --git a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index 26c2cc84f..9f41e526d 100644
--- a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -595,6 +595,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
             }
             mediaList.addEventListener(this)
             addUpdateActor.offer(Unit)
+            service.onMediaListChanged()
             if (mrl !== null && ml.count == 1) {
                 getCurrentMedia()?.apply {
                     launch(Dispatchers.IO) {



More information about the Android mailing list