From: kruland2607 Date: Thu, 16 Feb 2012 19:23:03 +0000 (+0000) Subject: Roll back previous change. It was not correct. The underlying problem was the dialo... X-Git-Tag: upstream/12.03~1^2~48 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=590f022cdad68f60f9a1c5a723de498bd4c1c4bf;p=debian%2Fopenrocket Roll back previous change. It was not correct. The underlying problem was the dialog was being dismissed twice when using the TCMissingMotorDownloadAction. git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@423 180e2498-e6e9-4542-8430-84ac67f01cd8 --- diff --git a/android/src/net/sf/openrocket/android/thrustcurve/TCQueryAction.java b/android/src/net/sf/openrocket/android/thrustcurve/TCQueryAction.java index 79be85f1..bccacd49 100644 --- a/android/src/net/sf/openrocket/android/thrustcurve/TCQueryAction.java +++ b/android/src/net/sf/openrocket/android/thrustcurve/TCQueryAction.java @@ -136,8 +136,8 @@ public abstract class TCQueryAction extends Fragment { protected void dismiss() { AndroidLogWrapper.d(TCQueryAction.class,"dismiss the progress"); ProgressDialogFragment progress = (ProgressDialogFragment) getActivity().getSupportFragmentManager().findFragmentByTag(PROGRESS_DIALOG_TAG); - if ( progress != null && progress.isVisible()) { - progress.dismiss(); + if ( progress != null ) { + getActivity().getSupportFragmentManager().beginTransaction().remove(progress).commit(); } }