[Android] Playlistmanager: Revert updates triggered to soon

Geoffrey Métais git at videolan.org
Tue Feb 19 17:42:21 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb 19 17:33:22 2019 +0100| [7b070dfb2e9f24f69c9e19a558d3945de15abaf0] | committer: Geoffrey Métais

Playlistmanager: Revert updates triggered to soon

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

 vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index 89fe46327..814d51240 100644
--- a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -175,9 +175,9 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
         return true
     }
 
-    private fun onPlaylistLoaded() {
+    private suspend fun onPlaylistLoaded() {
         service.onPlaylistLoaded()
-        addUpdateActor.offer(Unit)
+        determinePrevAndNextIndices()
     }
 
     fun play() {



More information about the Android mailing list