diff options
| author | Tadashi G. Takaoka <takaoka@google.com> | 2014-02-24 17:42:28 +0900 |
|---|---|---|
| committer | Tadashi G. Takaoka <takaoka@google.com> | 2014-02-24 17:42:28 +0900 |
| commit | da500b7ec3093178922140cb67beca1e3578661d (patch) | |
| tree | 1ecdfb3dd766ea9aa649721b4223b0e8a52ff0df /java/src/com/android/inputmethod/keyboard/internal/KeyVisualAttributes.java | |
| parent | 584e9c9c22c8e54bf29db2160b72b313b93539c1 (diff) | |
Revert "Prepare for changing text color for functional keys"
This reverts commit 194e004e81f74c4124184ad8597d68e3837ea560.
Bug: 10786040
Change-Id: I4c5287d46cabe287abce5cba77635cf26d2cd192
Diffstat (limited to 'java/src/com/android/inputmethod/keyboard/internal/KeyVisualAttributes.java')
| -rw-r--r-- | java/src/com/android/inputmethod/keyboard/internal/KeyVisualAttributes.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/internal/KeyVisualAttributes.java b/java/src/com/android/inputmethod/keyboard/internal/KeyVisualAttributes.java index c3e0aa685..df386fce4 100644 --- a/java/src/com/android/inputmethod/keyboard/internal/KeyVisualAttributes.java +++ b/java/src/com/android/inputmethod/keyboard/internal/KeyVisualAttributes.java @@ -16,7 +16,6 @@ package com.android.inputmethod.keyboard.internal; -import android.content.res.ColorStateList; import android.content.res.TypedArray; import android.graphics.Typeface; import android.util.SparseIntArray; @@ -38,7 +37,7 @@ public final class KeyVisualAttributes { public final float mHintLabelRatio; public final float mPreviewTextRatio; - public final ColorStateList mTextColorStateList; + public final int mTextColor; public final int mTextInactivatedColor; public final int mTextShadowColor; public final int mHintLetterColor; @@ -119,7 +118,7 @@ public final class KeyVisualAttributes { mPreviewTextRatio = ResourceUtils.getFraction(keyAttr, R.styleable.Keyboard_Key_keyPreviewTextRatio); - mTextColorStateList = keyAttr.getColorStateList(R.styleable.Keyboard_Key_keyTextColor); + mTextColor = keyAttr.getColor(R.styleable.Keyboard_Key_keyTextColor, 0); mTextInactivatedColor = keyAttr.getColor( R.styleable.Keyboard_Key_keyTextInactivatedColor, 0); mTextShadowColor = keyAttr.getColor(R.styleable.Keyboard_Key_keyTextShadowColor, 0); |
