diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-01-02 20:43:29 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-01-02 20:43:29 -0800 |
commit | e1b3644d2d50b874be66037281586f568754ec9d (patch) | |
tree | 41350b9c8b60aca0118bd515c7b4535d87ee4534 | |
parent | a00d8b78af07231688bfb629b3ebe1dad786d684 (diff) | |
download | dsub-e1b3644d2d50b874be66037281586f568754ec9d.tar.gz dsub-e1b3644d2d50b874be66037281586f568754ec9d.tar.bz2 dsub-e1b3644d2d50b874be66037281586f568754ec9d.zip |
Set playerstate to idle before reseting media player
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 2 |
1 files changed, 1 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 984d0cc9..c6789ecb 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -666,10 +666,10 @@ public class DownloadServiceImpl extends Service implements DownloadService { bufferTask.cancel(); } try { + setPlayerState(IDLE); mediaPlayer.setOnErrorListener(null); mediaPlayer.setOnCompletionListener(null); mediaPlayer.reset(); - setPlayerState(IDLE); } catch (Exception x) { handleError(x); } |