[Android] PlaylistModel: Fix current length value access
Geoffrey Métais
git at videolan.org
Tue Apr 30 14:41:33 CEST 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Apr 30 14:35:38 2019 +0200| [a118d6b395ba28e80fa5c89b8d70aab86178f7d8] | committer: Geoffrey Métais
PlaylistModel: Fix current length value access
> https://code.videolan.org/videolan/vlc-android/commit/a118d6b395ba28e80fa5c89b8d70aab86178f7d8
---
vlc-android/src/org/videolan/vlc/viewmodels/PlaylistModel.kt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/viewmodels/PlaylistModel.kt b/vlc-android/src/org/videolan/vlc/viewmodels/PlaylistModel.kt
index b003ffda0..84d8d066b 100644
--- a/vlc-android/src/org/videolan/vlc/viewmodels/PlaylistModel.kt
+++ b/vlc-android/src/org/videolan/vlc/viewmodels/PlaylistModel.kt
@@ -146,7 +146,8 @@ class PlaylistModel : ScopedModel(), PlaybackService.Callback by EmptyPBSCallbac
service?.time = value
}
- val length = service?.length ?: 0L
+ val length : Long
+ get() = service?.length ?: 0L
val playing : Boolean
get() = service?.isPlaying ?: false
More information about the Android
mailing list