aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2012-10-16 17:32:00 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-10-16 17:32:00 -0700
commit788c885aa54cb6aa9adc69f638098969ced6f83f (patch)
treec74dd4f7d03cc53657d99170d0d4f0b99784a2dc /java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
parent477088c6123b6d67d7311ac9ac1d04e8bc922324 (diff)
parent344a7fef5bd101e2d1c4278cc35de2862f28a456 (diff)
downloadlatinime-788c885aa54cb6aa9adc69f638098969ced6f83f.tar.gz
latinime-788c885aa54cb6aa9adc69f638098969ced6f83f.tar.xz
latinime-788c885aa54cb6aa9adc69f638098969ced6f83f.zip
am 344a7fef: am 658e935b: am c0bc3369: Merge "Fix more suggestions text width calculation" into jb-mr1-dev
* commit '344a7fef5bd101e2d1c4278cc35de2862f28a456': 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.java4
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 4ad82abdd..42626951d 100644
--- a/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
+++ b/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
@@ -50,10 +50,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(
@@ -180,6 +181,7 @@ public final class MoreSuggestions extends Keyboard {
load(xmlId, parentKeyboard.mId);
mParams.mVerticalGap = mParams.mTopPadding = parentKeyboard.mVerticalGap / 2;
+ mPaneView.updateKeyboardGeometry(mParams.mDefaultRowHeight);
final int count = mParams.layout(suggestions, fromPos, maxWidth, minWidth, maxRow,
mPaneView);
mFromPos = fromPos;