code: public boolean waitForDialogToClose() {
  		if(config.commandLogging){
  			Log.d(config.commandLoggingTag, "waitForDialogToClose()");
  		}
  		
  		return dialogUtils.waitForDialogToClose(Timeout.getLargeTimeout());
  	}
docs: Waits for a Dialog to close. Default timeout is 20 seconds.
  
  @return {@code true} if the {@link android.app.Dialog} is closed before the timeout and {@code false} if it is not closed