[Android] Erase progress LiveData later

Geoffrey Métais git at videolan.org
Wed Apr 4 18:35:52 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Mar 23 18:06:26 2018 +0100| [36670bfc0a3dc8899da7075525efde8c14ad19df] | committer: Geoffrey Métais

Erase progress LiveData later

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

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

diff --git a/vlc-android/src/org/videolan/vlc/MediaParsingService.kt b/vlc-android/src/org/videolan/vlc/MediaParsingService.kt
index b5bf96ade..db842d845 100644
--- a/vlc-android/src/org/videolan/vlc/MediaParsingService.kt
+++ b/vlc-android/src/org/videolan/vlc/MediaParsingService.kt
@@ -322,7 +322,7 @@ class MediaParsingService : Service(), DevicesDiscoveryCb {
     }
 
     override fun onDestroy() {
-        progress.value = null
+        progress.postValue(null)
         started.value = false
         hideNotification()
         mMedialibrary.removeDeviceDiscoveryCb(this)



More information about the Android mailing list