am 449415c7: Cleanup (A9)

* commit '449415c72f437f523a49a9ccfcde8a3c0f583a18':
  Cleanup (A9)
This commit is contained in:
Jean Chalard 2012-01-26 21:22:17 -08:00 committed by Android Git Automerger
commit 152563cf23

View file

@ -311,8 +311,10 @@ public class WordComposer {
// instead of only on cancel), and ultimately we want to figure it out even earlier anyway. // instead of only on cancel), and ultimately we want to figure it out even earlier anyway.
final LastComposedWord lastComposedWord = new LastComposedWord(mCodes, final LastComposedWord lastComposedWord = new LastComposedWord(mCodes,
mXCoordinates, mYCoordinates, mTypedWord.toString(), mXCoordinates, mYCoordinates, mTypedWord.toString(),
(type != LastComposedWord.COMMIT_TYPE_DECIDED_WORD) || (null == mAutoCorrection) null == mAutoCorrection ? null : mAutoCorrection.toString());
? null : mAutoCorrection.toString()); if (type != LastComposedWord.COMMIT_TYPE_DECIDED_WORD) {
lastComposedWord.deactivate();
}
mCodes.clear(); mCodes.clear();
mTypedWord.setLength(0); mTypedWord.setLength(0);
mAutoCorrection = null; mAutoCorrection = null;