aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-03-23 17:34:14 -0700
committerScott Jackson <daneren2005@gmail.com>2013-03-23 17:34:14 -0700
commitd04e9845a096a6c052c93688d6f250e6f60b4599 (patch)
treeef3789084da150f92ff02cce2617001bdafd22ab /subsonic-android
parent81b38b3cb466dcdb9af669fff1886ce83caa16a7 (diff)
downloaddsub-d04e9845a096a6c052c93688d6f250e6f60b4599.tar.gz
dsub-d04e9845a096a6c052c93688d6f250e6f60b4599.tar.bz2
dsub-d04e9845a096a6c052c93688d6f250e6f60b4599.zip
Fix visualizer causing ANR in DownloadActivity.onPause
Diffstat (limited to 'subsonic-android')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java
index 7c5c9513..735bf98f 100644
--- a/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java
+++ b/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java
@@ -512,7 +512,7 @@ public class DownloadActivity extends SubsonicTabActivity implements OnGestureLi
protected void onPause() {
super.onPause();
executorService.shutdown();
- if (visualizerView != null) {
+ if (visualizerView != null && visualizerView.isActive()) {
visualizerView.setActive(false);
}
}