diff options
author | 2012-07-06 12:34:41 +0900 | |
---|---|---|
committer | 2012-07-09 15:06:16 +0900 | |
commit | 347a80f793c2b3e132b48d87918e331352b142f4 (patch) | |
tree | 1078f037e85e0a2d9341d1d92ae22339b64d5094 /java/src | |
parent | 7a422a0142a025a66078fb9971bf15f8b9c89f38 (diff) | |
download | latinime-347a80f793c2b3e132b48d87918e331352b142f4.tar.gz latinime-347a80f793c2b3e132b48d87918e331352b142f4.tar.xz latinime-347a80f793c2b3e132b48d87918e331352b142f4.zip |
Tiny refactoring (A73)
If !mWordComposer.isComposingWord(), then mWordComposer.getTypedWord()
will always return an empty string.
Change-Id: Ife66d0abc44c743cbc30d31724e833cda168fd5c
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index f2dc976bf..62d477839 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1674,17 +1674,15 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen return; } - final CharSequence typedWord; + final String typedWord = mWordComposer.getTypedWord(); final SuggestedWords suggestions; if (!mWordComposer.isComposingWord()) { if (!mCurrentSettings.mBigramPredictionEnabled) { setPunctuationSuggestions(); return; } - typedWord = ""; suggestions = updateBigramPredictions(); } else { - typedWord = mWordComposer.getTypedWord(); suggestions = updateSuggestions(typedWord); } |