[Android] Fix network media resume

Nicolas Pomepuy git at videolan.org
Wed Apr 10 15:11:57 CEST 2019


vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Wed Apr 10 15:06:13 2019 +0200| [0c91e0b735d0bad820e647b48afc54799dbbb32e] | committer: Nicolas Pomepuy

Fix network media resume

> https://code.videolan.org/videolan/vlc-android/commit/0c91e0b735d0bad820e647b48afc54799dbbb32e
---

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

diff --git a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index b4b0eec77..d7730ffb1 100644
--- a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -613,7 +613,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
                 0L
             }
             savedTime <= 0L -> when {
-                mw.time >= 0L -> mw.time
+                mw.time > 0L -> mw.time
                 mw.type == MediaWrapper.TYPE_VIDEO || mw.isPodcast -> withContext(Dispatchers.IO) { medialibrary.findMedia(mw).getMetaLong(MediaWrapper.META_PROGRESS) }
                 else -> 0L
             }



More information about the Android mailing list