aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-01-02 20:43:29 -0800
committerScott Jackson <daneren2005@gmail.com>2013-01-02 20:43:29 -0800
commite1b3644d2d50b874be66037281586f568754ec9d (patch)
tree41350b9c8b60aca0118bd515c7b4535d87ee4534
parenta00d8b78af07231688bfb629b3ebe1dad786d684 (diff)
downloaddsub-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.java2
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);
}