diff options
author | 2014-02-25 00:18:41 -0800 | |
---|---|---|
committer | 2014-02-25 00:18:41 -0800 | |
commit | 553dd86c195f58792d2fc7f61b89f89eb6872b03 (patch) | |
tree | 449f20b2d7c0d049b3f92f79012fc361e5439438 | |
parent | 6ff2126a2352e4a390dd92f79b04657531e5f7e6 (diff) | |
parent | ef3a45643e950cdd934763c59963cee4089f93e1 (diff) | |
download | latinime-553dd86c195f58792d2fc7f61b89f89eb6872b03.tar.gz latinime-553dd86c195f58792d2fc7f61b89f89eb6872b03.tar.xz latinime-553dd86c195f58792d2fc7f61b89f89eb6872b03.zip |
am ef3a4564: [QRP1] Fix a bug where the wrong value would get passed
* commit 'ef3a45643e950cdd934763c59963cee4089f93e1':
[QRP1] Fix a bug where the wrong value would get passed
-rw-r--r-- | java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java index 8ea712835..7a7464e1d 100644 --- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java +++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java @@ -242,8 +242,8 @@ final class SuggestionStripLayoutHelper { return indexInSuggestedWords; } - private int getSuggestionTextColor(final int indexInSuggestedWords, - final SuggestedWords suggestedWords) { + private int getSuggestionTextColor(final SuggestedWords suggestedWords, + final int indexInSuggestedWords) { final int positionInStrip = getPositionInSuggestionStrip(indexInSuggestedWords, suggestedWords); // TODO: Need to revisit this logic with bigram suggestions @@ -438,7 +438,7 @@ final class SuggestionStripLayoutHelper { // {@link SuggestionStripView#onClick(View)}. wordView.setTag(indexInSuggestedWords); wordView.setText(getStyledSuggestedWord(suggestedWords, indexInSuggestedWords)); - wordView.setTextColor(getSuggestionTextColor(positionInStrip, suggestedWords)); + wordView.setTextColor(getSuggestionTextColor(suggestedWords, indexInSuggestedWords)); if (SuggestionStripView.DBG) { mDebugInfoViews.get(positionInStrip).setText( suggestedWords.getDebugString(indexInSuggestedWords)); |