[Android] Do not add media to history on loading

Geoffrey Métais git at videolan.org
Tue Jan 8 17:48:09 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jan  8 17:41:32 2019 +0100| [523adaf35b88a740c10209fd8192630eff2d0509] | committer: Geoffrey Métais

Do not add media to history on loading

At this step, we don't have video tracks yet, every media is a stream.
Fix #710

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

 vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 1 -
 1 file changed, 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 078166bad..877e7808d 100644
--- a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -728,7 +728,6 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
                     }
                     if (newMedia) {
                         loadMediaMeta(mw)
-                        if (mw.type == MediaWrapper.TYPE_STREAM) medialibrary.addToHistory(mw.location, mw.title)
                         saveMediaList()
                         savePosition(true)
                         saveCurrentMedia()



More information about the Android mailing list