diff options
author | 2011-12-18 03:51:08 +0900 | |
---|---|---|
committer | 2011-12-18 16:46:44 +0900 | |
commit | 1ebedd7a15a8fd94e68fb43eb089ed87c4c5a480 (patch) | |
tree | 78e7588be1fc06f33812d0bb04aae9eb79cb13d1 /java/src | |
parent | 5afc3ae2d9df0c2c93f2c66af13b128889ac3b5d (diff) | |
download | latinime-1ebedd7a15a8fd94e68fb43eb089ed87c4c5a480.tar.gz latinime-1ebedd7a15a8fd94e68fb43eb089ed87c4c5a480.tar.xz latinime-1ebedd7a15a8fd94e68fb43eb089ed87c4c5a480.zip |
Remove LatinKeyboard.adjustLabelCase override
Change-Id: If032605c1cd6bb8e913d465e20dec70798c4b8fb
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/keyboard/Keyboard.java | 4 | ||||
-rw-r--r-- | java/src/com/android/inputmethod/keyboard/LatinKeyboard.java | 10 |
2 files changed, 2 insertions, 12 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/Keyboard.java b/java/src/com/android/inputmethod/keyboard/Keyboard.java index f21d4545e..b7dd302b7 100644 --- a/java/src/com/android/inputmethod/keyboard/Keyboard.java +++ b/java/src/com/android/inputmethod/keyboard/Keyboard.java @@ -216,8 +216,8 @@ public class Keyboard { // TODO: Remove this method. public CharSequence adjustLabelCase(CharSequence label) { - if (isShiftedOrShiftLocked() && !TextUtils.isEmpty(label) && label.length() < 3 - && Character.isLowerCase(label.charAt(0))) { + if (mId.isAlphabetKeyboard() && isShiftedOrShiftLocked() && !TextUtils.isEmpty(label) + && label.length() < 3 && Character.isLowerCase(label.charAt(0))) { return label.toString().toUpperCase(mId.mLocale); } return label; diff --git a/java/src/com/android/inputmethod/keyboard/LatinKeyboard.java b/java/src/com/android/inputmethod/keyboard/LatinKeyboard.java index 50a8d64ce..30c07bed9 100644 --- a/java/src/com/android/inputmethod/keyboard/LatinKeyboard.java +++ b/java/src/com/android/inputmethod/keyboard/LatinKeyboard.java @@ -28,7 +28,6 @@ import android.graphics.PorterDuff; import android.graphics.Rect; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; -import android.text.TextUtils; import com.android.inputmethod.keyboard.internal.KeyboardBuilder; import com.android.inputmethod.keyboard.internal.KeyboardParams; @@ -138,15 +137,6 @@ public class LatinKeyboard extends Keyboard { return mSpaceKey; } - @Override - public CharSequence adjustLabelCase(CharSequence label) { - if (mId.isAlphabetKeyboard() && isShiftedOrShiftLocked() && !TextUtils.isEmpty(label) - && label.length() < 3 && Character.isLowerCase(label.charAt(0))) { - return label.toString().toUpperCase(mId.mLocale); - } - return label; - } - private void updateSpacebarIcon() { if (mSpaceKey == null) return; if (mNeedsToDisplayLanguage) { |