aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-01-23 02:09:31 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2014-01-23 02:09:31 -0800
commitb8c71e2fa3537de1ccebe77ec458e7d840ed1586 (patch)
treed7029f716eed3559169b3a2a4ea9deb924a5d116 /java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
parent647466f729c2f8d9cdffb8d6c198b32207f961d3 (diff)
parent3aa2043a66f7fcb5eaba3adae16abf5aa862d652 (diff)
downloadlatinime-b8c71e2fa3537de1ccebe77ec458e7d840ed1586.tar.gz
latinime-b8c71e2fa3537de1ccebe77ec458e7d840ed1586.tar.xz
latinime-b8c71e2fa3537de1ccebe77ec458e7d840ed1586.zip
am 3aa2043a: Merge "[IL76] Remove a SuggestionStripView dependency"
* commit '3aa2043a66f7fcb5eaba3adae16abf5aa862d652': [IL76] Remove a SuggestionStripView dependency
Diffstat (limited to 'java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java')
-rw-r--r--java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java b/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
index 52012c846..b96175f02 100644
--- a/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
+++ b/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
@@ -47,10 +47,10 @@ public final class MoreSuggestions extends Keyboard {
}
private static final class MoreSuggestionsParam extends KeyboardParams {
- private final int[] mWidths = new int[SuggestionStripView.MAX_SUGGESTIONS];
- private final int[] mRowNumbers = new int[SuggestionStripView.MAX_SUGGESTIONS];
- private final int[] mColumnOrders = new int[SuggestionStripView.MAX_SUGGESTIONS];
- private final int[] mNumColumnsInRow = new int[SuggestionStripView.MAX_SUGGESTIONS];
+ private final int[] mWidths = new int[SuggestedWords.MAX_SUGGESTIONS];
+ private final int[] mRowNumbers = new int[SuggestedWords.MAX_SUGGESTIONS];
+ private final int[] mColumnOrders = new int[SuggestedWords.MAX_SUGGESTIONS];
+ private final int[] mNumColumnsInRow = new int[SuggestedWords.MAX_SUGGESTIONS];
private static final int MAX_COLUMNS_IN_ROW = 3;
private int mNumRows;
public Drawable mDivider;
@@ -72,7 +72,7 @@ public final class MoreSuggestions extends Keyboard {
int row = 0;
int index = fromIndex;
int rowStartIndex = fromIndex;
- final int size = Math.min(suggestedWords.size(), SuggestionStripView.MAX_SUGGESTIONS);
+ final int size = Math.min(suggestedWords.size(), SuggestedWords.MAX_SUGGESTIONS);
while (index < size) {
final String word = suggestedWords.getWord(index);
// TODO: Should take care of text x-scaling.