[Android] Abort loadLastPlaylist if none found
Geoffrey Métais
git at videolan.org
Mon Feb 8 14:47:24 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Feb 8 12:07:33 2016 +0100| [e7ac23ed809268208de1fd90c6add414e3c6357c] | committer: Geoffrey Métais
Abort loadLastPlaylist if none found
> https://code.videolan.org/videolan/vlc-android/commit/e7ac23ed809268208de1fd90c6add414e3c6357c
---
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 107ceb3..84ea088 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -1284,6 +1284,8 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
if (currentMedia.equals(""))
return;
String[] locations = mSettings.getString(audio ? "audio_list" : "media_list", "").split(" ");
+ if (locations.length == 0)
+ return;
List<String> mediaPathList = new ArrayList<String>(locations.length);
for (int i = 0 ; i < locations.length ; ++i)
More information about the Android
mailing list