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 04:53:48 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-08-09 04:53:48 -0700
commit3f75c04144e0ea7a24164fc91257b51a4f93a37b (patch)
treebe6ce019c01e94183b595d84ba6864b6861d1f94 /java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
parent119258153e08a4b61e29ac71599419410a014507 (diff)
parentf76264dcf4942a0e2685a9f816f7581b3d9d76fb (diff)
downloadlatinime-3f75c04144e0ea7a24164fc91257b51a4f93a37b.tar.gz
latinime-3f75c04144e0ea7a24164fc91257b51a4f93a37b.tar.xz
latinime-3f75c04144e0ea7a24164fc91257b51a4f93a37b.zip
am f76264dc: Merge "Remove key preview backing view"
* commit 'f76264dcf4942a0e2685a9f816f7581b3d9d76fb': 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,