private void commitTyped(InputConnection inputConnection){
  if (mComposing.length() > 0) {
    inputConnection.commitText(mComposing,mComposing.length());
    mComposing.setLength(0);
    updateCandidates();
  }
}

private void commitTyped ( InputConnection inputConnection ) { if ( mComposing . length ( ) > 0 ) { inputConnection . commitText ( mComposing , mComposing . length ( ) ) ; mComposing . setLength ( 0 ) ; updateCandidates ( ) ; } }
helper function to commit any text being composed in to the editor .
