diff options
author | 2012-10-16 17:29:39 -0700 | |
---|---|---|
committer | 2012-10-16 17:29:39 -0700 | |
commit | 344a7fef5bd101e2d1c4278cc35de2862f28a456 (patch) | |
tree | b8d57234307a16d04d992eb0bed9c199451ee39c /java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java | |
parent | 6b169dc91d7533d36bc1f5864bcaf05450af3beb (diff) | |
parent | 658e935ba1d7763854b2df87d90f7d374a81c7a1 (diff) | |
download | latinime-344a7fef5bd101e2d1c4278cc35de2862f28a456.tar.gz latinime-344a7fef5bd101e2d1c4278cc35de2862f28a456.tar.xz latinime-344a7fef5bd101e2d1c4278cc35de2862f28a456.zip |
am 658e935b: am c0bc3369: Merge "Fix more suggestions text width calculation" into jb-mr1-dev
* commit '658e935ba1d7763854b2df87d90f7d374a81c7a1':
Fix more suggestions text width calculation
Diffstat (limited to 'java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java b/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java index e9bf0fac4..4e9fd1968 100644 --- a/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java +++ b/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java @@ -51,10 +51,11 @@ public final class MoreSuggestions extends Keyboard { super(); } + // TODO: Remove {@link MoreSuggestionsView} argument. public int layout(final SuggestedWords suggestions, final int fromPos, final int maxWidth, final int minWidth, final int maxRow, final MoreSuggestionsView view) { clearKeys(); - final Resources res = view.getContext().getResources(); + final Resources res = view.getResources(); mDivider = res.getDrawable(R.drawable.more_suggestions_divider); mDividerWidth = mDivider.getIntrinsicWidth(); final int padding = (int) res.getDimension( @@ -181,6 +182,7 @@ public final class MoreSuggestions extends Keyboard { load(xmlId, keyboard.mId); mParams.mVerticalGap = mParams.mTopPadding = keyboard.mVerticalGap / 2; + mPaneView.updateKeyboardGeometry(mParams.mDefaultRowHeight); final int count = mParams.layout(suggestions, fromPos, maxWidth, minWidth, maxRow, mPaneView); mFromPos = fromPos; |