diff options
author | 2012-12-28 14:02:26 +0900 | |
---|---|---|
committer | 2012-12-28 14:41:28 +0900 | |
commit | 864db4b0dad32a2e949f2e4396d9cf5a234fcefd (patch) | |
tree | facb288c351de374ddd157fffe352c086ca8bfd6 /java/src | |
parent | 997cba7decce9694b3c2f9487deb9710ebb19595 (diff) | |
download | latinime-864db4b0dad32a2e949f2e4396d9cf5a234fcefd.tar.gz latinime-864db4b0dad32a2e949f2e4396d9cf5a234fcefd.tar.xz latinime-864db4b0dad32a2e949f2e4396d9cf5a234fcefd.zip |
A small simplification.
It's useless to setAutoCorrection(getTypedWord()). Every time the
contents of the word composer are altered, the auto-correction is
reset, and at use time if it's null then the typed word is used
anyway.
Change-Id: I0870657a1ab3f456f376995b27e70703f7a5d23a
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 3ee4459e4..1607f88aa 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -997,9 +997,6 @@ public final class LatinIME extends InputMethodService implements KeyboardAction final boolean isAutoCorrection = false; setSuggestionStrip(suggestedWords, isAutoCorrection); setAutoCorrectionIndicator(isAutoCorrection); - // TODO: is this the right thing to do? What should we auto-correct to in - // this case? This says to keep whatever the user typed. - mWordComposer.setAutoCorrection(mWordComposer.getTypedWord()); setSuggestionStripShown(true); if (ProductionFlag.IS_EXPERIMENTAL) { ResearchLogger.latinIME_onDisplayCompletions(applicationSpecifiedCompletions); @@ -1989,7 +1986,6 @@ public final class LatinIME extends InputMethodService implements KeyboardAction if (mWordComposer.isComposingWord()) { Log.w(TAG, "Called updateSuggestionsOrPredictions but suggestions were not " + "requested!"); - mWordComposer.setAutoCorrection(mWordComposer.getTypedWord()); } return; } |