[Android] Trigger listeners update after queue liste update
Geoffrey Métais
git at videolan.org
Mon Feb 24 07:23:47 CET 2020
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Feb 21 17:51:58 2020 +0100| [45f96619ec15c70a612cf803a337b838366d35d9] | committer: Geoffrey Métais
Trigger listeners update after queue liste update
> https://code.videolan.org/videolan/vlc-android/commit/45f96619ec15c70a612cf803a337b838366d35d9
---
application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index cbea02226..1887924fc 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -144,7 +144,8 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
playIndex(currentIndex)
service.onPlaylistLoaded()
if (mlUpdate) {
- mediaList.replaceWith(withContext(Dispatchers.IO) { mediaList.copy.updateWithMLMeta() } )
+ mediaList.replaceWith(withContext(Dispatchers.IO) { mediaList.copy.updateWithMLMeta() })
+ executeUpdate()
}
}
}
More information about the Android
mailing list