public void hideKeyboard(Runnable postHideTask){
  if (mUrlBar != null)   mUrlBar.clearFocus();
  boolean wasVisible=false;
  if (hasFocus()) {
    wasVisible=UiUtils.hideKeyboard(this);
  }
  if (wasVisible) {
    mPostHideKeyboardTask=postHideTask;
  }
 else {
    postHideTask.run();
  }
}

public void hideKeyboard ( Runnable postHideTask ) { if ( mUrlBar != null ) mUrlBar . clearFocus ( ) ; boolean wasVisible = false ; if ( hasFocus ( ) ) { wasVisible = UiUtils . hideKeyboard ( this ) ; } if ( wasVisible ) { mPostHideKeyboardTask = postHideTask ; } else { postHideTask . run ( ) ; } }
hides the the keyboard if it was opened for the contentview .
