aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-01-16 23:22:03 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-01-16 23:22:03 -0800
commitd104a7aac8b0791341c71deb013d4e6adfc57e8a (patch)
tree51f1aab7ae2fcfd08464c3611feaf48ab701b8f8 /java/src
parentff020671a9790a095c135b9dbe5d22d011d3e2db (diff)
parentedc6395d9bdbb46082c8582ee92f6ba184914d59 (diff)
downloadlatinime-d104a7aac8b0791341c71deb013d4e6adfc57e8a.tar.gz
latinime-d104a7aac8b0791341c71deb013d4e6adfc57e8a.tar.xz
latinime-d104a7aac8b0791341c71deb013d4e6adfc57e8a.zip
Merge "Fix a bug where words disappear on inserting separators"
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 32e933064..f8fef8e92 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1414,7 +1414,9 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
if (mDeleteCount > DELETE_ACCELERATE_AT) {
ic.deleteSurroundingText(1, 0);
}
- restartSuggestionsOnWordBeforeCursorIfAtEndOfWord(ic);
+ if (isSuggestionsRequested()) {
+ restartSuggestionsOnWordBeforeCursorIfAtEndOfWord(ic);
+ }
}
}
}
@@ -1706,6 +1708,10 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
// Check if we have a suggestion engine attached.
if ((mSuggest == null || !isSuggestionsRequested())
&& !mVoiceProxy.isVoiceInputHighlighted()) {
+ if (mWordComposer.isComposingWord()) {
+ Log.w(TAG, "Called updateSuggestions but suggestions were not requested!");
+ mWordComposer.setAutoCorrection(mWordComposer.getTypedWord());
+ }
return;
}