diff options
author | 2014-08-16 14:02:21 +0000 | |
---|---|---|
committer | 2014-08-16 14:02:21 +0000 | |
commit | c9240d280c2a49ed09069be36a0e3dae05ac0e69 (patch) | |
tree | c507c5dc515e73944cccab12b160f00d1edc79ea /java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java | |
parent | ef0808e705ad221384f4942089e2f4d354dfcb96 (diff) | |
parent | 18ac3c8afd06c237a2935abad130aa3b99b5004b (diff) | |
download | latinime-c9240d280c2a49ed09069be36a0e3dae05ac0e69.tar.gz latinime-c9240d280c2a49ed09069be36a0e3dae05ac0e69.tar.xz latinime-c9240d280c2a49ed09069be36a0e3dae05ac0e69.zip |
am 18ac3c8a: am 16a43d2b: Let the backing view cover the entire content area
* commit '18ac3c8afd06c237a2935abad130aa3b99b5004b':
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.java | 6 |
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, |