private void checkNotificationDisplay() {
        final boolean currentHasNotificaton = this.state == State.DIALOG_WAITING || this.state == State.DIALOG_PAUSED;
        if (this.currentlyDisplayingNotification && !currentHasNotificaton) {
            Notifications.cancel(CgeoApplication.getInstance(), Notifications.ID_WHERIGO_NEW_DIALOG_ID);
        } else if (!this.currentlyDisplayingNotification && currentHasNotificaton) {
            createNotification();
        }
        this.currentlyDisplayingNotification = currentHasNotificaton;
    }
opens currently waiting dialog in given activity
main/src/main/java/cgeo/geocaching/wherigo/WherigoDialogManager.java