aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2010-10-02 15:17:27 +0900
committerTadashi G. Takaoka <takaoka@google.com>2010-10-05 20:28:04 +0900
commit66e306d01c6820d4f4d8b2209438ec086b48ac51 (patch)
treef34ff078e7e27539450f0442005b136726607562 /java/src/com/android/inputmethod/latin/LatinKeyboardView.java
parentb1abda8d62d654e876c4f781a07d724922c736e4 (diff)
downloadlatinime-66e306d01c6820d4f4d8b2209438ec086b48ac51.tar.gz
latinime-66e306d01c6820d4f4d8b2209438ec086b48ac51.tar.xz
latinime-66e306d01c6820d4f4d8b2209438ec086b48ac51.zip
Add keyHintIcon attribute to BaseKeyboard.Key class
This keyHintIcon attribute is used to specify hint icon drawable at top right corner of Key. Change-Id: Icaa91e63c4473b2513396bd3fbeb8ed6fd73586c
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinKeyboardView.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinKeyboardView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboardView.java b/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
index 912af7e2a..f3d045bec 100644
--- a/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
+++ b/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
@@ -109,9 +109,9 @@ public class LatinKeyboardView extends LatinKeyboardBaseView {
@Override
protected CharSequence adjustCase(CharSequence label) {
BaseKeyboard keyboard = getKeyboard();
- if (keyboard.isShifted()
- && keyboard instanceof LatinKeyboard
+ if (keyboard instanceof LatinKeyboard
&& ((LatinKeyboard) keyboard).isAlphaKeyboard()
+ && keyboard.isShifted()
&& !TextUtils.isEmpty(label) && label.length() < 3
&& Character.isLowerCase(label.charAt(0))) {
label = label.toString().toUpperCase();