Can't dismiss a nonvisible dialog.
This commit is contained in:
parent
1cde36a461
commit
4add9a88f4
@ -136,7 +136,7 @@ public abstract class TCQueryAction extends Fragment {
|
|||||||
protected void dismiss() {
|
protected void dismiss() {
|
||||||
AndroidLogWrapper.d(TCQueryAction.class,"dismiss the progress");
|
AndroidLogWrapper.d(TCQueryAction.class,"dismiss the progress");
|
||||||
ProgressDialogFragment progress = (ProgressDialogFragment) getActivity().getSupportFragmentManager().findFragmentByTag(PROGRESS_DIALOG_TAG);
|
ProgressDialogFragment progress = (ProgressDialogFragment) getActivity().getSupportFragmentManager().findFragmentByTag(PROGRESS_DIALOG_TAG);
|
||||||
if ( progress != null ) {
|
if ( progress != null && progress.isVisible()) {
|
||||||
progress.dismiss();
|
progress.dismiss();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user