[Android] Fix last audio shortcut

Geoffrey Métais git at videolan.org
Fri Aug 21 14:47:52 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Aug 21 14:47:18 2015 +0200| [dc03f7e39fe53848bd8799160737cb116921f39b] | committer: Geoffrey Métais

Fix last audio shortcut

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=dc03f7e39fe53848bd8799160737cb116921f39b
---

 vlc-android/src/org/videolan/vlc/PlaybackService.java |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 970bc92..b2164fb 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -1287,6 +1287,8 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
     }
 
     private synchronized void saveMediaList() {
+        if (getCurrentMedia() == null || getCurrentMedia().getType() == MediaWrapper.TYPE_VIDEO)
+            return;
         StringBuilder locations = new StringBuilder();
         for (int i = 0; i < mMediaList.size(); i++)
             locations.append(" ").append(Uri.encode(mMediaList.getMRL(i)));



More information about the Android mailing list