diff options
author | Scott Jackson <daneren2005@gmail.com> | 2012-12-12 22:03:47 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2012-12-12 22:03:47 -0800 |
commit | 1212f9d09c0b60c2a6e58626f9f76e702629543c (patch) | |
tree | fe741d3fbfb676bb8858c2b95db49cfeb75e4ff5 /subsonic-android/src | |
parent | bd9c797579a225dfd0c3d599430d7a40b87cb97b (diff) | |
download | dsub-1212f9d09c0b60c2a6e58626f9f76e702629543c.tar.gz dsub-1212f9d09c0b60c2a6e58626f9f76e702629543c.tar.bz2 dsub-1212f9d09c0b60c2a6e58626f9f76e702629543c.zip |
Check if file is playing complete file when in the complete handler
Diffstat (limited to 'subsonic-android/src')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java index d4d84def..d4cf4eb9 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -843,6 +843,11 @@ public class DownloadServiceImpl extends Service implements DownloadService { wakeLock.acquire(60000); setPlayerState(COMPLETED); + + if (!file.equals(downloadFile.getPartialFile())) { + onSongCompleted(); + return; + } // If file is not completely downloaded, restart the playback from the current position. int pos = mediaPlayer.getCurrentPosition(); |