aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2010-10-11 02:52:08 +0900
committerKen Wakasa <kwakasa@google.com>2010-10-11 02:55:05 +0900
commit364da8c618303a7764595d2c15ee034a7671365d (patch)
tree575487d7fd044cd0d8918af98269d4a0617b39d7 /java/src
parent7e1f5a2d5a96c74691b3b09fa986efb7161e5a12 (diff)
downloadlatinime-364da8c618303a7764595d2c15ee034a7671365d.tar.gz
latinime-364da8c618303a7764595d2c15ee034a7671365d.tar.xz
latinime-364da8c618303a7764595d2c15ee034a7671365d.zip
Fix - "Touch again to save" not working for manually picked suggestion when re-correction is enabled.
bug: 3082806 Change-Id: I64e652b0ad1d496e102a7cc2cf9a5615df423192
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 7f84ed775..4e0f7c56b 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -817,7 +817,10 @@ public class LatinIME extends InputMethodService
} else {
abortCorrection(false);
// Show the punctuation suggestions list if the current one is not
- if (!mSuggestPuncList.equals(mCandidateView.getSuggestions())) {
+ // and if not showing "Touch again to save".
+ if (mCandidateView != null
+ && !mSuggestPuncList.equals(mCandidateView.getSuggestions())
+ && !mCandidateView.isShowingAddToDictionaryHint()) {
setNextSuggestions();
}
}
@@ -1935,7 +1938,7 @@ public class LatinIME extends InputMethodService
TextEntryState.typedCharacter((char) KEYCODE_SPACE, true);
setNextSuggestions();
} else if (!showingAddToDictionaryHint) {
- // If we're not showing the "Touch again to save hint", 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.
clearSuggestions();
postUpdateOldSuggestions();