aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-02-09 23:24:02 +0900
committerTadashi G. Takaoka <takaoka@google.com>2014-02-10 11:14:35 +0900
commitf70bcf3d323b13b60c0567c69768ed986647f86a (patch)
tree1ecc03cd189b2db3867d0f847c994e0618deb5f8 /java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
parente592c1b291b9eba807b0ee888a3944555d296877 (diff)
downloadlatinime-f70bcf3d323b13b60c0567c69768ed986647f86a.tar.gz
latinime-f70bcf3d323b13b60c0567c69768ed986647f86a.tar.xz
latinime-f70bcf3d323b13b60c0567c69768ed986647f86a.zip
Refactor Key constructors
This is a followup of I76432556ca. Change-Id: Ie2c8f7c23352a33db28e89ee8e6ebaba9eb760a3
Diffstat (limited to 'java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java')
-rw-r--r--java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java b/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
index b96175f02..2f4c1839b 100644
--- a/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
+++ b/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
@@ -209,10 +209,10 @@ public final class MoreSuggestions extends Keyboard {
final String word = mSuggestedWords.getWord(index);
final String info = mSuggestedWords.getDebugString(index);
final int indexInMoreSuggestions = index + SUGGESTION_CODE_BASE;
- final Key key = new Key(
- params, word, info, KeyboardIconsSet.ICON_UNDEFINED, indexInMoreSuggestions,
- null /* outputText */, x, y, width, params.mDefaultRowHeight,
- 0 /* labelFlags */, Key.BACKGROUND_TYPE_NORMAL);
+ final Key key = new Key(word, KeyboardIconsSet.ICON_UNDEFINED,
+ indexInMoreSuggestions, null /* outputText */, info, 0 /* labelFlags */,
+ Key.BACKGROUND_TYPE_NORMAL, x, y, width, params.mDefaultRowHeight,
+ params.mHorizontalGap, params.mVerticalGap);
params.markAsEdgeKey(key, index);
params.onAddKey(key);
final int columnNumber = params.getColumnNumber(index);