aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2012-05-16 01:57:34 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-05-16 01:57:34 -0700
commit50e373943d79f2442abe9d937c1d92e4bef614dd (patch)
tree4f674f394fb2c050cedd3fe7420dbcbb790d6ba6 /java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
parent93661b3b353e40dd851c439b7c6dae8b058e8d52 (diff)
parentbd85efd5fb70496b05aa7a3dd7646dca894a9464 (diff)
downloadlatinime-50e373943d79f2442abe9d937c1d92e4bef614dd.tar.gz
latinime-50e373943d79f2442abe9d937c1d92e4bef614dd.tar.xz
latinime-50e373943d79f2442abe9d937c1d92e4bef614dd.zip
am bd85efd5: Merge "Set divider icon\'s alpha value on the fly" into jb-dev
* commit 'bd85efd5fb70496b05aa7a3dd7646dca894a9464': Set divider icon's alpha value on the fly
Diffstat (limited to 'java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java')
-rw-r--r--java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java b/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
index dd83a0c4e..c6fe43b69 100644
--- a/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
+++ b/java/src/com/android/inputmethod/latin/suggestions/MoreSuggestions.java
@@ -56,8 +56,6 @@ public class MoreSuggestions extends Keyboard {
clearKeys();
final Resources res = view.getContext().getResources();
mDivider = res.getDrawable(R.drawable.more_suggestions_divider);
- // TODO: Drawable itself should have an alpha value.
- mDivider.setAlpha(128);
mDividerWidth = mDivider.getIntrinsicWidth();
final int padding = (int) res.getDimension(
R.dimen.more_suggestions_key_horizontal_padding);
@@ -195,7 +193,11 @@ public class MoreSuggestions extends Keyboard {
}
@Override
- public Drawable getIcon(KeyboardIconsSet iconSet) {
+ public Drawable getIcon(KeyboardIconsSet iconSet, int alpha) {
+ // KeyboardIconsSet and alpha are unused. Use the icon that has been passed to the
+ // constructor.
+ // TODO: Drawable itself should have an alpha value.
+ mIcon.setAlpha(128);
return mIcon;
}
}