[Android] AudioService: fix an IndexOutOfBoundsException
Ludovic Fauvet
git at videolan.org
Mon Nov 19 11:27:46 CET 2012
vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Mon Nov 19 11:27:01 2012 +0100| [cc88871578b0517b5d64b879583819d623449cff] | committer: Ludovic Fauvet
AudioService: fix an IndexOutOfBoundsException
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=cc88871578b0517b5d64b879583819d623449cff
---
vlc-android/src/org/videolan/vlc/AudioService.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/AudioService.java b/vlc-android/src/org/videolan/vlc/AudioService.java
index 38b9305..0968c6b 100644
--- a/vlc-android/src/org/videolan/vlc/AudioService.java
+++ b/vlc-android/src/org/videolan/vlc/AudioService.java
@@ -516,7 +516,7 @@ public class AudioService extends Service {
} else if (!mShuffling && index < mMediaList.size() - 1) {
mCurrentMedia = mMediaList.get(index + 1);
} else {
- if (mRepeating == RepeatType.All)
+ if (mRepeating == RepeatType.All && mMediaList.size() > 0)
mCurrentMedia = mMediaList.get(0);
else {
stop();
More information about the Android
mailing list