aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2011-05-12 18:02:53 +0900
committerJean Chalard <jchalard@google.com>2011-05-12 18:24:55 +0900
commit892b1fb18aa729aef8d75224f75562ea3908a903 (patch)
tree10689166aa0a45fd84bad0fbdd2430a15d8fc076 /java/src
parent4ef1b6b6b6323e53d377ac78058466b74e48f555 (diff)
downloadlatinime-892b1fb18aa729aef8d75224f75562ea3908a903.tar.gz
latinime-892b1fb18aa729aef8d75224f75562ea3908a903.tar.xz
latinime-892b1fb18aa729aef8d75224f75562ea3908a903.zip
Fix a bug where suggestions would not update in Froyo WebTextView
Bug: 4396864 Change-Id: Ia45466319498ae7e35fe8a39b4e3a361d66ac2cc
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index d15fc36d9..f9483540b 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1610,7 +1610,10 @@ 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);
- // 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) {
// 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.