[Android] PlaylistModel: Fix current length value access
Geoffrey Métais
git at videolan.org
Tue Apr 30 14:42:40 CEST 2019
vlc-android | branch: 3.1.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Apr 30 14:35:38 2019 +0200| [b206c3597de7f1643c9ab23e46aa9bd8906d2e98] | committer: Geoffrey Métais
PlaylistModel: Fix current length value access
(cherry picked from commit a118d6b395ba28e80fa5c89b8d70aab86178f7d8)
> https://code.videolan.org/videolan/vlc-android/commit/b206c3597de7f1643c9ab23e46aa9bd8906d2e98
---
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