aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2012-08-05 22:45:48 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-08-05 22:45:49 -0700
commit44f12ed900f57af7318884347d9e1c434422a3ca (patch)
tree46b81ede4283078220736110f15f1e8faee0c856 /java/src
parente2a6badf601e7b637a709a11e430bd21bb46f6f9 (diff)
parent0a524de3df86e3039acba40b69ccba67ec484a41 (diff)
downloadlatinime-44f12ed900f57af7318884347d9e1c434422a3ca.tar.gz
latinime-44f12ed900f57af7318884347d9e1c434422a3ca.tar.xz
latinime-44f12ed900f57af7318884347d9e1c434422a3ca.zip
Merge "Separate updateSuggestionStrip from commitTyped" into jb-mr1-dev
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index f8a6fc884..1e700f525 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -545,8 +545,9 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
commitTyped(LastComposedWord.NOT_A_SEPARATOR);
mConnection.finishComposingText();
mConnection.endBatchEdit();
- if (isShowingOptionDialog())
+ if (isShowingOptionDialog()) {
mOptionsDialog.dismiss();
+ }
}
super.onConfigurationChanged(conf);
}
@@ -1046,7 +1047,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
LastComposedWord.COMMIT_TYPE_USER_TYPED_WORD, typedWord.toString(),
separatorCode, prevWord);
}
- updateSuggestionStrip();
}
// Called from the KeyboardSwitcher which needs to know auto caps state to display
@@ -1330,10 +1330,11 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
// Called from PointerTracker through the KeyboardActionListener interface
@Override
- public void onTextInput(CharSequence text) {
+ public void onTextInput(CharSequence rawText) {
mConnection.beginBatchEdit();
commitTyped(LastComposedWord.NOT_A_SEPARATOR);
- text = specificTldProcessingOnTextInput(text);
+ mHandler.postUpdateSuggestionStrip();
+ final CharSequence text = specificTldProcessingOnTextInput(rawText);
if (SPACE_STATE_PHANTOM == mSpaceState) {
sendKeyCodePoint(Keyboard.CODE_SPACE);
}
@@ -1688,8 +1689,9 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
commitTyped(LastComposedWord.NOT_A_SEPARATOR);
requestHideSelf(0);
MainKeyboardView inputView = mKeyboardSwitcher.getKeyboardView();
- if (inputView != null)
+ if (inputView != null) {
inputView.closing();
+ }
}
// TODO: make this private