diff options
author | 2013-12-25 21:22:52 -0800 | |
---|---|---|
committer | 2013-12-25 21:22:52 -0800 | |
commit | 69d8055bb66bdfb16667dc0fa80735f3fe1f1df1 (patch) | |
tree | 9ba98f681ffe9b9cd210419df2fd8909bd5ab882 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | e86dc236f59cb7848a42340169b19427a4d3967b (diff) | |
parent | 30a72da42c479adb4cedff5d7a40846a3103ac9b (diff) | |
download | latinime-69d8055bb66bdfb16667dc0fa80735f3fe1f1df1.tar.gz latinime-69d8055bb66bdfb16667dc0fa80735f3fe1f1df1.tar.xz latinime-69d8055bb66bdfb16667dc0fa80735f3fe1f1df1.zip |
am 30a72da4: [IL37] Small simplification
* commit '30a72da42c479adb4cedff5d7a40846a3103ac9b':
[IL37] Small simplification
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 7d17b15b7..d8fb4f2be 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1147,7 +1147,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen @Override public boolean onEvaluateFullscreenMode() { - // Reread resource value here, because this method is called by framework anytime as needed. + // Reread resource value here, because this method is called by the framework as needed. final boolean isFullscreenModeAllowed = Settings.readUseFullscreenMode(getResources()); if (super.onEvaluateFullscreenMode() && isFullscreenModeAllowed) { // TODO: Remove this hack. Actually we should not really assume NO_EXTRACT_UI @@ -1628,9 +1628,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen autoCorrection = typedWord; } mInputLogic.mWordComposer.setAutoCorrection(autoCorrection); - final boolean isAutoCorrection = suggestedWords.willAutoCorrect(); - setSuggestedWords(suggestedWords, isAutoCorrection); - setAutoCorrectionIndicator(isAutoCorrection); + setSuggestedWords(suggestedWords, suggestedWords.mWillAutoCorrect); + setAutoCorrectionIndicator(suggestedWords.mWillAutoCorrect); setSuggestionStripShown(isSuggestionsStripVisible()); // An auto-correction is available, cache it in accessibility code so // we can be speak it if the user touches a key that will insert it. |