am 71ed917a: am 817bed54: am e027ac9f: am a8285a24: am dfaec345: Merge "Always call finishComposingText before recapitalization"

* commit '71ed917abc2dbe18e0460f3782c3e6fe4b2a3c4f':
  Always call finishComposingText before recapitalization
main
Jean Chalard 2013-12-13 02:26:40 +00:00 committed by Android Git Automerger
commit de11456a88
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);