aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-02-22 00:50:13 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-02-22 00:50:13 -0800
commit2aa16dd81f50aa7737bd77b3ca9cfcf27b6cc048 (patch)
tree685bfa21c853d15d270b6378f3156b34048549e2 /java/src/com/android/inputmethod/latin/LatinIME.java
parent80c25df49dacbbd3a8baf2fda075dcdb9a8b49cf (diff)
parent9271b770e81350e232c351f76f9f7a2ec23dff5f (diff)
downloadlatinime-2aa16dd81f50aa7737bd77b3ca9cfcf27b6cc048.tar.gz
latinime-2aa16dd81f50aa7737bd77b3ca9cfcf27b6cc048.tar.xz
latinime-2aa16dd81f50aa7737bd77b3ca9cfcf27b6cc048.zip
Merge "Activate the code to cancel a manual pick (A5)"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 1424e63f0..6935f1946 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1458,11 +1458,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
if (mSuggestionsView != null && mSuggestionsView.dismissAddToDictionaryHint()) {
// Go back to the suggestion mode if the user canceled the
// "Touch again to save".
- // NOTE: In general, we don't revert the word when backspacing
- // from a manual suggestion pick. We deliberately chose a
- // different behavior only in the case of picking the first
- // suggestion (typed word). It's intentional to have made this
- // inconsistent with backspacing after selecting other suggestions.
+ // TODO: this code path is not used any more. Verify & delete.
restartSuggestionsOnManuallyPickedTypedWord(ic);
} else {
// Here we must check whether there is a selection. If so we should remove the
@@ -2170,6 +2166,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
}
// "ic" must not be null
+ // TODO: rename this method to cancelCommit.
private void cancelAutoCorrect(final InputConnection ic) {
final String originallyTypedWord = mLastComposedWord.mTypedWord;
final CharSequence committedWord = mLastComposedWord.mCommittedWord;