diff options
author | 2011-06-16 17:20:29 +0900 | |
---|---|---|
committer | 2011-06-16 20:10:49 +0900 | |
commit | a61967330e6086a99373e21ad03323af81aa17ed (patch) | |
tree | 1142608835de4709926f38e591cfdb97d28e2910 /java/src/com/android/inputmethod/latin | |
parent | 08a6f2aea71d998206c47c16dcda4eaa90f8c9ea (diff) | |
download | latinime-a61967330e6086a99373e21ad03323af81aa17ed.tar.gz latinime-a61967330e6086a99373e21ad03323af81aa17ed.tar.xz latinime-a61967330e6086a99373e21ad03323af81aa17ed.zip |
Make LatinKeyboard aware of theme
Bug: 4436327
Change-Id: Idecdd470cbb0720b96958039eb11f6978d39629e
Diffstat (limited to 'java/src/com/android/inputmethod/latin')
-rw-r--r-- | java/src/com/android/inputmethod/latin/CandidateView.java | 5 | ||||
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/java/src/com/android/inputmethod/latin/CandidateView.java b/java/src/com/android/inputmethod/latin/CandidateView.java index e5ac22554..2a29e1f8f 100644 --- a/java/src/com/android/inputmethod/latin/CandidateView.java +++ b/java/src/com/android/inputmethod/latin/CandidateView.java @@ -81,7 +81,6 @@ public class CandidateView extends LinearLayout implements OnClickListener, OnLo private static final int AUTO_CORRECT_BOLD = 0x01; private static final int AUTO_CORRECT_UNDERLINE = 0x02; private static final int AUTO_CORRECT_INVERT = 0x04; - private static final int AUTO_CORRECT_SPACEBAR_LED = 0x08; private final int mColorTypedWord; private final int mColorAutoCorrect; private final int mColorSuggestedCandidate; @@ -420,10 +419,6 @@ public class CandidateView extends LinearLayout implements OnClickListener, OnLo mShowingAutoCorrectionInverted = true; } - public boolean needsAutoCorrectionSpacebarLed() { - return (mAutoCorrectHighlight & AUTO_CORRECT_SPACEBAR_LED) != 0; - } - public boolean isShowingAddToDictionaryHint() { return mShowingAddToDictionary; } diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index db8e52aa1..87912eb00 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1464,7 +1464,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar if (mCandidateView != null) { mCandidateView.setSuggestions(words); - if (mCandidateView.needsAutoCorrectionSpacebarLed()) { + if (mKeyboardSwitcher.getLatinKeyboard().needsAutoCorrectionSpacebarLed()) { mKeyboardSwitcher.onAutoCorrectionStateChanged( words.hasWordAboveAutoCorrectionScoreThreshold()); } |