diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-01-31 19:16:37 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-01-31 19:16:37 -0800 |
commit | 9208a31f606bfa2a911d81d176f8a1ac90c7c4fc (patch) | |
tree | afd9996027d32f8a856fb13341f78795fc097094 /subsonic-android | |
parent | 6f050cc0ba06b7331a2301af26d3376539168b64 (diff) | |
download | dsub-9208a31f606bfa2a911d81d176f8a1ac90c7c4fc.tar.gz dsub-9208a31f606bfa2a911d81d176f8a1ac90c7c4fc.tar.bz2 dsub-9208a31f606bfa2a911d81d176f8a1ac90c7c4fc.zip |
setPlayerState(COMPLETED) immediately for timing
Diffstat (limited to 'subsonic-android')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java index 08ba4fda..bdc15e97 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -936,14 +936,13 @@ public class DownloadServiceImpl extends Service implements DownloadService { mediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { @Override public void onCompletion(MediaPlayer mediaPlayer) { + setPlayerState(COMPLETED); // Acquire a temporary wakelock, since when we return from // this callback the MediaPlayer will release its wakelock // and allow the device to go to sleep. wakeLock.acquire(60000); - setPlayerState(COMPLETED); - if (!file.equals(downloadFile.getPartialFile())) { onSongCompleted(); return; |