Fix a bug where suggestions would not update in Froyo WebTextView
Bug: 4396864 Change-Id: Ia45466319498ae7e35fe8a39b4e3a361d66ac2cc
This commit is contained in:
parent
4ef1b6b6b6
commit
892b1fb18a
1 changed files with 4 additions and 1 deletions
|
@ -1610,7 +1610,10 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
// TextEntryState.State.PICKED_SUGGESTION state.
|
// TextEntryState.State.PICKED_SUGGESTION state.
|
||||||
TextEntryState.typedCharacter((char) Keyboard.CODE_SPACE, true,
|
TextEntryState.typedCharacter((char) Keyboard.CODE_SPACE, true,
|
||||||
WordComposer.NOT_A_COORDINATE, WordComposer.NOT_A_COORDINATE);
|
WordComposer.NOT_A_COORDINATE, WordComposer.NOT_A_COORDINATE);
|
||||||
// From there on onUpdateSelection() will fire so suggestions will be updated
|
// 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) {
|
} else if (!showingAddToDictionaryHint) {
|
||||||
// If we're not showing the "Touch again to save", then show corrections again.
|
// 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.
|
// In case the cursor position doesn't change, make sure we show the suggestions again.
|
||||||
|
|
Loading…
Reference in a new issue