Skip to content
Snippets Groups Projects
Commit 1ebedd7a authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Remove LatinKeyboard.adjustLabelCase override

Change-Id: If032605c1cd6bb8e913d465e20dec70798c4b8fb
parent 5afc3ae2
No related branches found
No related tags found
No related merge requests found
...@@ -216,8 +216,8 @@ public class Keyboard { ...@@ -216,8 +216,8 @@ public class Keyboard {
// TODO: Remove this method. // TODO: Remove this method.
public CharSequence adjustLabelCase(CharSequence label) { public CharSequence adjustLabelCase(CharSequence label) {
if (isShiftedOrShiftLocked() && !TextUtils.isEmpty(label) && label.length() < 3 if (mId.isAlphabetKeyboard() && isShiftedOrShiftLocked() && !TextUtils.isEmpty(label)
&& Character.isLowerCase(label.charAt(0))) { && label.length() < 3 && Character.isLowerCase(label.charAt(0))) {
return label.toString().toUpperCase(mId.mLocale); return label.toString().toUpperCase(mId.mLocale);
} }
return label; return label;
......
...@@ -28,7 +28,6 @@ import android.graphics.PorterDuff; ...@@ -28,7 +28,6 @@ import android.graphics.PorterDuff;
import android.graphics.Rect; import android.graphics.Rect;
import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable; import android.graphics.drawable.Drawable;
import android.text.TextUtils;
import com.android.inputmethod.keyboard.internal.KeyboardBuilder; import com.android.inputmethod.keyboard.internal.KeyboardBuilder;
import com.android.inputmethod.keyboard.internal.KeyboardParams; import com.android.inputmethod.keyboard.internal.KeyboardParams;
...@@ -138,15 +137,6 @@ public class LatinKeyboard extends Keyboard { ...@@ -138,15 +137,6 @@ public class LatinKeyboard extends Keyboard {
return mSpaceKey; 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() { private void updateSpacebarIcon() {
if (mSpaceKey == null) return; if (mSpaceKey == null) return;
if (mNeedsToDisplayLanguage) { if (mNeedsToDisplayLanguage) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment