[Android] [PATCH 13/24] AudioService: Create media from the media list

Edward Wang edward.c.wang at compdigitec.com
Wed Aug 22 23:15:13 CEST 2012


Don't recreate it from scratch.
---
 vlc-android/src/org/videolan/vlc/AudioService.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/AudioService.java b/vlc-android/src/org/videolan/vlc/AudioService.java
index 1094461..07042a2 100644
--- a/vlc-android/src/org/videolan/vlc/AudioService.java
+++ b/vlc-android/src/org/videolan/vlc/AudioService.java
@@ -667,7 +667,7 @@ public class AudioService extends Service {
 
             if(realPlaylist) {
                 for(int i = 0; i < mediaPathList.size(); i++)
-                    mMediaList.add(new Media(mediaPathList.get(i), false));
+                    mMediaList.add(new Media(mediaPathList.get(i), i));
             } else {
                 DatabaseManager db = DatabaseManager.getInstance(AudioService.this);
                 for (int i = 0; i < mediaPathList.size(); i++) {
-- 
1.7.5.4



More information about the Android mailing list