[Android] Save media meta on pause for podcasts

Geoffrey Métais git at videolan.org
Thu Feb 27 10:32:43 CET 2020


vlc-android | branch: 3.2.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 27 10:18:33 2020 +0100| [39b11e64f0af1e08e51ed385fe2a042295ecbe16] | committer: Geoffrey Métais

Save media meta on pause for podcasts

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

 vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 5 ++++-
 1 file changed, 4 insertions(+), 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 6875e7776..5871b7392 100644
--- a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -188,7 +188,10 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
     }
 
     fun pause() {
-        if (player.pause()) savePosition()
+        if (player.pause()) {
+            savePosition()
+            if (getCurrentMedia()?.isPodcast == true) saveMediaMeta()
+        }
     }
 
     @MainThread



More information about the Android mailing list