aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2013-08-09 11:48:33 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-08-09 11:48:33 +0000
commitf76264dcf4942a0e2685a9f816f7581b3d9d76fb (patch)
tree88962a028b319dafc685a17f94e42b60f2d82f77 /java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
parent14f5cec07b173a2de924f495b2929a795967a494 (diff)
parent2dfcfc5013eee2fbd19a5830ff70943bd6c1bee2 (diff)
downloadlatinime-f76264dcf4942a0e2685a9f816f7581b3d9d76fb.tar.gz
latinime-f76264dcf4942a0e2685a9f816f7581b3d9d76fb.tar.xz
latinime-f76264dcf4942a0e2685a9f816f7581b3d9d76fb.zip
Merge "Remove key preview backing view"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java')
-rw-r--r--java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java13
1 files changed, 1 insertions, 12 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
index 1dd04fc4d..bcf64a8e8 100644
--- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
+++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
@@ -177,20 +177,9 @@ final class SuggestionStripLayoutHelper {
return mMaxMoreSuggestionsRow;
}
- private int getMoreSuggestionsHeight() {
- return mMaxMoreSuggestionsRow * mMoreSuggestionsRowHeight + mMoreSuggestionsBottomGap;
- }
-
- public int setMoreSuggestionsHeight(final int remainingHeight) {
- final int currentHeight = getMoreSuggestionsHeight();
- if (currentHeight <= remainingHeight) {
- return currentHeight;
- }
-
+ public void setMoreSuggestionsHeight(final int remainingHeight) {
mMaxMoreSuggestionsRow = (remainingHeight - mMoreSuggestionsBottomGap)
/ mMoreSuggestionsRowHeight;
- final int newHeight = getMoreSuggestionsHeight();
- return newHeight;
}
private static Drawable getMoreSuggestionsHint(final Resources res, final float textSize,