aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
diff options
context:
space:
mode:
authorYohei Yukawa <yukawa@google.com>2014-08-16 13:57:05 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-08-16 13:57:05 +0000
commit18ac3c8afd06c237a2935abad130aa3b99b5004b (patch)
tree682a1545ba956b744234448c226f523d72f115d1 /java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
parente04c8b10d7876effbfdf2340a1fec6bf368c3409 (diff)
parent16a43d2bd9c5d80f8e50f5a7682b657ee10621e1 (diff)
downloadlatinime-18ac3c8afd06c237a2935abad130aa3b99b5004b.tar.gz
latinime-18ac3c8afd06c237a2935abad130aa3b99b5004b.tar.xz
latinime-18ac3c8afd06c237a2935abad130aa3b99b5004b.zip
am 16a43d2b: Let the backing view cover the entire content area
* commit '16a43d2bd9c5d80f8e50f5a7682b657ee10621e1': Let the backing view cover the entire content area
Diffstat (limited to 'java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java')
-rw-r--r--java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
index c5f062d5b..7307ca1ba 100644
--- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
+++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
@@ -167,16 +167,14 @@ final class SuggestionStripLayoutHelper {
return mMaxMoreSuggestionsRow * mMoreSuggestionsRowHeight + mMoreSuggestionsBottomGap;
}
- public int setMoreSuggestionsHeight(final int remainingHeight) {
+ public void setMoreSuggestionsHeight(final int remainingHeight) {
final int currentHeight = getMoreSuggestionsHeight();
if (currentHeight <= remainingHeight) {
- return currentHeight;
+ return;
}
mMaxMoreSuggestionsRow = (remainingHeight - mMoreSuggestionsBottomGap)
/ mMoreSuggestionsRowHeight;
- final int newHeight = getMoreSuggestionsHeight();
- return newHeight;
}
private static Drawable getMoreSuggestionsHint(final Resources res, final float textSize,