aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-01-23 13:08:21 +0900
committerJean Chalard <jchalard@google.com>2014-01-23 16:25:48 +0900
commita1ed211c4e80eb81ce399e0eaff88bbdf1e3199f (patch)
tree6145368f6fecb15434b4a9236d7be8b0cc39f29d /java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
parentdf8310c6e21b5bcf825d97ed5eb3816bb7ce1b28 (diff)
downloadlatinime-a1ed211c4e80eb81ce399e0eaff88bbdf1e3199f.tar.gz
latinime-a1ed211c4e80eb81ce399e0eaff88bbdf1e3199f.tar.xz
latinime-a1ed211c4e80eb81ce399e0eaff88bbdf1e3199f.zip
[IL76] Remove a SuggestionStripView dependency
This constant is better located in SuggestedWords. Or it could be in Constants, that would be fine too. Bug: 8636060 Change-Id: I3e721bb1e2559f028dce8929eceadfe0478c5924
Diffstat (limited to 'java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java')
-rw-r--r--java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
index 073148a50..88b57f93b 100644
--- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
+++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
@@ -53,9 +53,6 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
public void pickSuggestionManually(int index, SuggestedWordInfo word);
}
- // The maximum number of suggestions available. See {@link Suggest#mPrefMaxSuggestions}.
- public static final int MAX_SUGGESTIONS = 18;
-
static final boolean DBG = LatinImeLogger.sDBG;
private final ViewGroup mSuggestionsStrip;
@@ -91,7 +88,7 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
inflater.inflate(R.layout.suggestions_strip, this);
mSuggestionsStrip = (ViewGroup)findViewById(R.id.suggestions_strip);
- for (int pos = 0; pos < MAX_SUGGESTIONS; pos++) {
+ for (int pos = 0; pos < SuggestedWords.MAX_SUGGESTIONS; pos++) {
final TextView word = (TextView)inflater.inflate(R.layout.suggestion_word, null);
word.setOnClickListener(this);
word.setOnLongClickListener(this);