diff options
author | daneren2005 <daneren2005@gmail.com> | 2013-04-05 14:38:22 -0700 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2013-04-05 14:38:22 -0700 |
commit | 35b227ff8098fd13d4cdb7877118fc7a49925d07 (patch) | |
tree | f4cda488cfc3966a50e492a4a51bc147d359d3b0 /subsonic-android/src | |
parent | 8e463efcf4e21b33c39f880e6db3976be35c0294 (diff) | |
download | dsub-35b227ff8098fd13d4cdb7877118fc7a49925d07.tar.gz dsub-35b227ff8098fd13d4cdb7877118fc7a49925d07.tar.bz2 dsub-35b227ff8098fd13d4cdb7877118fc7a49925d07.zip |
Move wakelock back to top on onCompletion
Diffstat (limited to 'subsonic-android/src')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 4 |
1 files changed, 2 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 e99ce3af..17b22e3e 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -1105,12 +1105,12 @@ public class DownloadServiceImpl extends Service implements DownloadService { mediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { @Override public void onCompletion(MediaPlayer mediaPlayer) { - setPlayerStateCompleted(); - // 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); + + setPlayerStateCompleted(); int pos = cachedPosition; Log.i(TAG, "Ending position " + pos + " of " + duration); |