From bea7c3bf381cba85a8ae4dba4e5978eb386d0062 Mon Sep 17 00:00:00 2001 From: daneren2005 Date: Mon, 25 Feb 2013 14:10:39 -0800 Subject: Fix java.lang.IllegalArgumentException: View not attached to window manager --- .../src/github/daneren2005/dsub/util/ModalBackgroundTask.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'subsonic-android/src') 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 extends BackgroundTask { 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); } }); -- cgit v1.2.3