aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/CandidateView.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2011-08-16 18:49:36 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-08-16 18:49:36 -0700
commit961453c3b3a8eb3aefb2cebdbcc315c98c2abbd4 (patch)
treef7f8a64fc9f05733d14ed5e653bd1db6d857bb0a /java/src/com/android/inputmethod/latin/CandidateView.java
parente486175987bca15881d292a8005e813f1d61e89f (diff)
parentbea6b72106853747302fcca11957647982384220 (diff)
downloadlatinime-961453c3b3a8eb3aefb2cebdbcc315c98c2abbd4.tar.gz
latinime-961453c3b3a8eb3aefb2cebdbcc315c98c2abbd4.tar.xz
latinime-961453c3b3a8eb3aefb2cebdbcc315c98c2abbd4.zip
Merge "Get rid of auto correction flash animation in the suggestion strip"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/CandidateView.java')
-rw-r--r--java/src/com/android/inputmethod/latin/CandidateView.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/java/src/com/android/inputmethod/latin/CandidateView.java b/java/src/com/android/inputmethod/latin/CandidateView.java
index b5b59ac12..f499bc0bb 100644
--- a/java/src/com/android/inputmethod/latin/CandidateView.java
+++ b/java/src/com/android/inputmethod/latin/CandidateView.java
@@ -278,7 +278,6 @@ public class CandidateView extends LinearLayout implements OnClickListener, OnLo
private final ArrayList<CharSequence> mTexts = new ArrayList<CharSequence>();
- public final boolean mAutoCorrectionVisualFlashEnabled;
public boolean mMoreSuggestionsAvailable;
public SuggestionsStripParams(Context context, AttributeSet attrs, int defStyle,
@@ -286,8 +285,6 @@ public class CandidateView extends LinearLayout implements OnClickListener, OnLo
super(words, dividers, infos);
final TypedArray a = context.obtainStyledAttributes(
attrs, R.styleable.CandidateView, defStyle, R.style.CandidateViewStyle);
- mAutoCorrectionVisualFlashEnabled = a.getBoolean(
- R.styleable.CandidateView_autoCorrectionVisualFlashEnabled, false);
mAutoCorrectHighlight = a.getInt(R.styleable.CandidateView_autoCorrectHighlight, 0);
mColorTypedWord = a.getColor(R.styleable.CandidateView_colorTypedWord, 0);
mColorAutoCorrect = a.getColor(R.styleable.CandidateView_colorAutoCorrect, 0);
@@ -584,7 +581,7 @@ public class CandidateView extends LinearLayout implements OnClickListener, OnLo
final int width = getWidth();
final int countInStrip = mStripParams.layout(
mSuggestions, mCandidatesStrip, mCandidatesPane, width);
- final int countInPane = mPaneParams.layout(
+ mPaneParams.layout(
mSuggestions, mCandidatesPane, countInStrip, mStripParams.getTextColor(), width);
}
@@ -704,9 +701,6 @@ public class CandidateView extends LinearLayout implements OnClickListener, OnLo
}
public void onAutoCorrectionInverted(CharSequence autoCorrectedWord) {
- if (!mStripParams.mAutoCorrectionVisualFlashEnabled) {
- return;
- }
final CharSequence inverted = mStripParams.getInvertedText(autoCorrectedWord);
if (inverted == null)
return;