Don't allow cancelling manual pick.

Bug: 6347202
Change-Id: I30b53256e83c534436b0f0ff594fd4aaabf4558c
This commit is contained in:
Jean Chalard 2012-04-20 15:55:19 +09:00
parent cf41aff251
commit 29a1fc0f6b

View file

@ -1848,6 +1848,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
mExpectingUpdateSelection = true; mExpectingUpdateSelection = true;
commitChosenWord(suggestion, LastComposedWord.COMMIT_TYPE_MANUAL_PICK, commitChosenWord(suggestion, LastComposedWord.COMMIT_TYPE_MANUAL_PICK,
LastComposedWord.NOT_A_SEPARATOR); LastComposedWord.NOT_A_SEPARATOR);
// Don't allow cancellation of manual pick
mLastComposedWord.deactivate();
// Add the word to the user history dictionary // Add the word to the user history dictionary
addToUserHistoryDictionary(suggestion); addToUserHistoryDictionary(suggestion);
mSpaceState = SPACE_STATE_PHANTOM; mSpaceState = SPACE_STATE_PHANTOM;