aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-01-07 16:46:06 +0900
committerTadashi G. Takaoka <takaoka@google.com>2014-01-08 10:02:37 +0900
commit0b593ce858d4b406e949f0e809cb77f41da691f9 (patch)
tree9fe2cc5e303e3fa69dd0f0d6ceaa75a9605ed4a4 /java/src/com/android/inputmethod/latin/LatinIME.java
parent6d5f9fd3d1ee903f9355905326cd75e7ee603d4e (diff)
downloadlatinime-0b593ce858d4b406e949f0e809cb77f41da691f9.tar.gz
latinime-0b593ce858d4b406e949f0e809cb77f41da691f9.tar.xz
latinime-0b593ce858d4b406e949f0e809cb77f41da691f9.zip
Separate spacing and punctuation related settings values
Bug: 12179576 Change-Id: Ibafd824a0ea2251843b388e95dcbd8f9bca92d5c
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 5a5674f8f..49b35137f 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1291,7 +1291,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
@UsedForTesting
public boolean isShowingPunctuationList() {
if (mInputLogic.mSuggestedWords == null) return false;
- return mSettings.getCurrent().mSuggestPuncList == mInputLogic.mSuggestedWords;
+ return mSettings.getCurrent().mSpacingAndPunctuations.mSuggestPuncList
+ == mInputLogic.mSuggestedWords;
}
// TODO[IL]: Define a clear interface for this
@@ -1407,7 +1408,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
private SuggestedWords getOlderSuggestions(final String typedWord) {
SuggestedWords previousSuggestedWords = mInputLogic.mSuggestedWords;
- if (previousSuggestedWords == mSettings.getCurrent().mSuggestPuncList) {
+ if (previousSuggestedWords
+ == mSettings.getCurrent().mSpacingAndPunctuations.mSuggestPuncList) {
previousSuggestedWords = SuggestedWords.EMPTY;
}
if (typedWord == null) {
@@ -1560,7 +1562,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
if (currentSettings.mBigramPredictionEnabled) {
clearSuggestionStrip();
} else {
- setSuggestedWords(currentSettings.mSuggestPuncList);
+ setSuggestedWords(currentSettings.mSpacingAndPunctuations.mSuggestPuncList);
}
setAutoCorrectionIndicator(false);
setSuggestionStripShown(isSuggestionsStripVisible());