aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-06-16 14:52:09 -0700
committerScott Jackson <daneren2005@gmail.com>2013-06-16 14:52:09 -0700
commit1f83676ac07df3a0babd9e9571cb8bfaf09480a7 (patch)
tree546d8b145677b701e26023e0c7d91b8fb2b17757 /subsonic-android
parent9838cfeff21519445c654f69c545037265d837b9 (diff)
downloaddsub-1f83676ac07df3a0babd9e9571cb8bfaf09480a7.tar.gz
dsub-1f83676ac07df3a0babd9e9571cb8bfaf09480a7.tar.bz2
dsub-1f83676ac07df3a0babd9e9571cb8bfaf09480a7.zip
Fix play last when playing last song already playing that song twice
Diffstat (limited to 'subsonic-android')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
index ba8ea1e4..4c02a831 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
@@ -282,16 +282,22 @@ public class DownloadServiceImpl extends Service implements DownloadService {
}
revision++;
} else {
+ int size = size();
+ int index = getCurrentPlayingIndex();
for (MusicDirectory.Entry song : songs) {
DownloadFile downloadFile = new DownloadFile(this, song, save);
downloadList.add(downloadFile);
}
+ if(!autoplay && (size - 1) == index) {
+ setNextPlaying();
+ }
revision++;
}
updateJukeboxPlaylist();
- if(shuffle)
+ if(shuffle) {
shuffle();
+ }
if (autoplay) {
play(0);