diff options
author | daneren2005 <daneren2005@gmail.com> | 2013-02-25 14:10:39 -0800 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2013-02-25 14:10:39 -0800 |
commit | bea7c3bf381cba85a8ae4dba4e5978eb386d0062 (patch) | |
tree | df110886ab4eaecc961010a61496d5305c86124d /subsonic-android/src | |
parent | e7b5dbf827faa9b620db8d15e5e15ffe210c2ab1 (diff) | |
download | dsub-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.java | 6 |
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); } }); |