am dfaec345: Merge "Always call finishComposingText before recapitalization"

* commit 'dfaec34502e214b4f6a0ce8b91ccfa57f7c8d07f':
  Always call finishComposingText before recapitalization
main
Jean Chalard 2013-10-08 22:19:29 -07:00 committed by Android Git Automerger
commit a8285a2425
1 changed files with 1 additions and 0 deletions

View File

@ -2307,6 +2307,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
mLastSelectionEnd = mRecapitalizeStatus.getNewCursorEnd(); mLastSelectionEnd = mRecapitalizeStatus.getNewCursorEnd();
} }
} }
mConnection.finishComposingText();
mRecapitalizeStatus.rotate(); mRecapitalizeStatus.rotate();
final int numCharsDeleted = mLastSelectionEnd - mLastSelectionStart; final int numCharsDeleted = mLastSelectionEnd - mLastSelectionStart;
mConnection.setSelection(mLastSelectionEnd, mLastSelectionEnd); mConnection.setSelection(mLastSelectionEnd, mLastSelectionEnd);