Fix a bug with dictionary add interface.

Fix a bug where the "Touch again to save" message would not stay
on screen, following a wrong fix for a problem where Gingerbread-
would not display punctuation in the suggestion strip in
WebTextView.

Change-Id: I3556f83f867240ed7f16753450e6c975853208e5
main
Jean Chalard 2011-05-13 19:33:33 +09:00
parent d157834345
commit 777118a40a
1 changed files with 2 additions and 5 deletions

View File

@ -1603,11 +1603,8 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
// TextEntryState.State.PICKED_SUGGESTION state.
TextEntryState.typedCharacter((char) Keyboard.CODE_SPACE, true,
WordComposer.NOT_A_COORDINATE, WordComposer.NOT_A_COORDINATE);
// On Honeycomb+, onUpdateSelection() will fire, but in Gingerbread- in WebTextView
// only it does not, for some reason. Force update suggestions so that it works
// in Gingerbread- in WebTextView too.
mHandler.postUpdateSuggestions();
} else if (!showingAddToDictionaryHint) {
}
if (!showingAddToDictionaryHint) {
// If we're not showing the "Touch again to save", then show corrections again.
// In case the cursor position doesn't change, make sure we show the suggestions again.
clearSuggestions();