[Android] Save media metadata on manual settings end

Geoffrey Métais git at videolan.org
Mon Mar 20 14:54:49 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Mar 20 14:52:37 2017 +0100| [44ac0f9de5c264cd1eaa0a5704bcccfb273674ff] | committer: Geoffrey Métais

Save media metadata on manual settings end

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

 vlc-android/src/org/videolan/vlc/PlaybackService.java               | 2 +-
 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index bf84c8b..9ad1e17 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -653,7 +653,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
         }
     };
 
-    private void saveMediaMeta() {
+    public void saveMediaMeta() {
         MediaWrapper media = mMedialibrary.findMedia(getCurrentMediaWrapper());
         if (media == null || media.getId() == 0)
             return;
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index e65ce2a..cf2e38e 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1375,6 +1375,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
     @Override
     public void endPlaybackSetting() {
         mTouchAction = TOUCH_NONE;
+        mService.saveMediaMeta();
         if (mBtReceiver != null && mPlaybackSetting == DelayState.AUDIO
                 && (mAudioManager.isBluetoothA2dpOn() || mAudioManager.isBluetoothScoOn())) {
             String msg = getString(R.string.audio_delay) + "\n"



More information about the Android mailing list