[Android] Save media meta on pause for podcasts

Geoffrey Métais git at videolan.org
Thu Feb 27 09:51:06 CET 2020


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Feb 24 18:10:23 2020 +0100| [805005bf842f9926ad271d69dfd2cb2b38d0d591] | committer: Geoffrey Métais

Save media meta on pause for podcasts

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

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

diff --git a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index 5d9ac003b..dbed8a0e6 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -196,7 +196,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