am e027ac9f: am a8285a24: am dfaec345: Merge "Always call finishComposingText before recapitalization"

* commit 'e027ac9f7f8986ce8cfb18378237698f49328e1a':
  Always call finishComposingText before recapitalization
main
Jean Chalard 2013-12-12 17:54:25 -08:00 committed by Android Git Automerger
commit 817bed5440
1 changed files with 1 additions and 0 deletions

View File

@ -2344,6 +2344,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);