From 16a43d2bd9c5d80f8e50f5a7682b657ee10621e1 Mon Sep 17 00:00:00 2001 From: Yohei Yukawa Date: Sat, 16 Aug 2014 12:28:13 +0900 Subject: Let the backing view cover the entire content area With this CL, the backing view starts covering the content area entirely. This allows the IME to render its UI elements at an arbitrary position on the screen. Change-Id: I8b4173410931b776964dddf66de2fe247e51d9de --- .../inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java') 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, -- cgit v1.2.3-83-g751a