private void closeCurrentDialog() {
        if (currentDialogControl == null) {
            return;
        }
        currentDialogControl.dismiss();
        currentDialogControl = null;
    }
called after a change in activities. Checks if a waiting dialog can now be displayed
main/src/main/java/cgeo/geocaching/wherigo/WherigoDialogManager.java