[Android] Fix network media resume

Nicolas Pomepuy git at videolan.org
Wed Apr 10 15:12:42 CEST 2019


vlc-android | branch: 3.1.x | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Wed Apr 10 15:06:13 2019 +0200| [c4d1100d195ba5c4c1fc9f96be20a70b725b0999] | committer: Geoffrey Métais

Fix network media resume

(cherry picked from commit 0c91e0b735d0bad820e647b48afc54799dbbb32e)

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

 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 407ffe160..e8aaab036 100644
--- a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -625,7 +625,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