[Android] PlaybackService: sanity check

Geoffrey Métais git at videolan.org
Fri Feb 21 14:34:16 CET 2020


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Feb 19 11:39:31 2020 +0100| [9d9bdd60519fe24cb09b7175ebc5b20f1347ad9e] | committer: Geoffrey Métais

PlaybackService: sanity check

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

 application/vlc-android/src/org/videolan/vlc/PlaybackService.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt b/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
index c68c427e2..fcb81db83 100644
--- a/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
+++ b/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
@@ -1319,7 +1319,7 @@ class PlaybackService : MediaBrowserServiceCompat(), LifecycleOwner {
     companion object {
         private val instanceChannel = ConflatedBroadcastChannel<PlaybackService?>(null)
         val instance : PlaybackService?
-            get() = instanceChannel.value
+            get() = instanceChannel.valueOrNull
         val serviceFlow : Flow<PlaybackService?>
             get() = instanceChannel.openSubscription().consumeAsFlow()
 



More information about the Android mailing list