code: public boolean waitForDialogToClose(long timeout) {
  		if(config.commandLogging){
  			Log.d(config.commandLoggingTag, "waitForDialogToClose("+timeout+")");
  		}
  		
  		return dialogUtils.waitForDialogToClose(timeout);
  	}
docs: Waits for a Dialog to close.
  
  @param timeout the amount of time in milliseconds to wait
  @return {@code true} if the {@link android.app.Dialog} is closed before the timeout and {@code false} if it is not closed