From bc4bac7a7c2e02e0f65ae804205232f2e256b97a Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 21 Aug 2014 19:43:32 -0700 Subject: Fix crash by making sure to update currentPlayingIndex in download --- src/github/daneren2005/dsub/service/DownloadService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index 5b4861ac..b96d76bd 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -349,6 +349,8 @@ public class DownloadService extends Service { currentPlaying = downloadList.get(0); currentPlayingIndex = 0; currentPlaying.setPlaying(true); + } else { + currentPlayingIndex = downloadList.indexOf(currentPlaying); } checkDownloads(); } -- cgit v1.2.3