aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-02-25 14:10:39 -0800
committerdaneren2005 <daneren2005@gmail.com>2013-02-25 14:10:39 -0800
commitbea7c3bf381cba85a8ae4dba4e5978eb386d0062 (patch)
treedf110886ab4eaecc961010a61496d5305c86124d /subsonic-android/src
parente7b5dbf827faa9b620db8d15e5e15ffe210c2ab1 (diff)
downloaddsub-bea7c3bf381cba85a8ae4dba4e5978eb386d0062.tar.gz
dsub-bea7c3bf381cba85a8ae4dba4e5978eb386d0062.tar.bz2
dsub-bea7c3bf381cba85a8ae4dba4e5978eb386d0062.zip
Fix java.lang.IllegalArgumentException: View not attached to window manager
Diffstat (limited to 'subsonic-android/src')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/util/ModalBackgroundTask.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/util/ModalBackgroundTask.java b/subsonic-android/src/github/daneren2005/dsub/util/ModalBackgroundTask.java
index 1954c474..8873b62c 100644
--- a/subsonic-android/src/github/daneren2005/dsub/util/ModalBackgroundTask.java
+++ b/subsonic-android/src/github/daneren2005/dsub/util/ModalBackgroundTask.java
@@ -85,7 +85,11 @@ public abstract class ModalBackgroundTask<T> extends BackgroundTask<T> {
getHandler().post(new Runnable() {
@Override
public void run() {
- progressDialog.dismiss();
+ try {
+ progressDialog.dismiss();
+ } catch(Exception e) {
+ Log.w(TAG, "Failed to dismiss dialog");
+ }
done(result);
}
});