Code example for InputConnection

Methods: commitCorrection

0
	} 
	 
	@Override 
	public void commitCorrectionToInputConnection(InputConnection ic,
			WordComposer word) {
		super.commitCorrectionToInputConnection(ic, word);
		CorrectionInfo correctionInfo = new CorrectionInfo(
				word.globalCursorPosition() - word.getTypedWord().length(),
				word.getTypedWord(), word.getPreferredWord());
 
		ic.commitCorrection(correctionInfo);
	} 
}