diff options
author | 2014-01-08 09:03:14 +0000 | |
---|---|---|
committer | 2014-01-08 09:03:15 +0000 | |
commit | 1e7f2809d2ec544b07956bdbe89c905c981b75fc (patch) | |
tree | cb75585be971112a5f19f25233ab8e8a7f2031c3 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | d4843c25e2b9f7e7c7c972af0cb22aac89e15d7d (diff) | |
parent | 8bc427799a9b7a53103d1edba4a447033fbd8cfa (diff) | |
download | latinime-1e7f2809d2ec544b07956bdbe89c905c981b75fc.tar.gz latinime-1e7f2809d2ec544b07956bdbe89c905c981b75fc.tar.xz latinime-1e7f2809d2ec544b07956bdbe89c905c981b75fc.zip |
Merge "Revert "Separate spacing and punctuation related settings values""
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index b7f035747..b1552abda 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1301,8 +1301,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen @UsedForTesting public boolean isShowingPunctuationList() { if (mInputLogic.mSuggestedWords == null) return false; - return mSettings.getCurrent().mSpacingAndPunctuations.mSuggestPuncList - == mInputLogic.mSuggestedWords; + return mSettings.getCurrent().mSuggestPuncList == mInputLogic.mSuggestedWords; } // TODO[IL]: Define a clear interface for this @@ -1418,8 +1417,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen private SuggestedWords getOlderSuggestions(final String typedWord) { SuggestedWords previousSuggestedWords = mInputLogic.mSuggestedWords; - if (previousSuggestedWords - == mSettings.getCurrent().mSpacingAndPunctuations.mSuggestPuncList) { + if (previousSuggestedWords == mSettings.getCurrent().mSuggestPuncList) { previousSuggestedWords = SuggestedWords.EMPTY; } if (typedWord == null) { @@ -1572,7 +1570,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen if (currentSettings.mBigramPredictionEnabled) { clearSuggestionStrip(); } else { - setSuggestedWords(currentSettings.mSpacingAndPunctuations.mSuggestPuncList); + setSuggestedWords(currentSettings.mSuggestPuncList); } setAutoCorrectionIndicator(false); setSuggestionStripShown(isSuggestionsStripVisible()); |