diff options
| author | Tadashi G. Takaoka <takaoka@google.com> | 2010-12-10 15:24:28 +0900 |
|---|---|---|
| committer | Tadashi G. Takaoka <takaoka@google.com> | 2010-12-10 18:24:00 +0900 |
| commit | e26ef1bccddc942fdaeada3409c8e8ff18a35008 (patch) | |
| tree | f697a67c0c82dc4e097e46fbf983ba77b98b44fd /java/src/com/android/inputmethod/keyboard/KeyboardView.java | |
| parent | 20cdb37bd062ae6cb6d42ad6229a19733476cd55 (diff) | |
Remove Tutorial class and unused debug feature
This change also cleanups compiler warnings.
Bug: 2897373
Change-Id: If972cf45c1eb40436adbddbf71969e5409f4c9c5
Diffstat (limited to 'java/src/com/android/inputmethod/keyboard/KeyboardView.java')
| -rw-r--r-- | java/src/com/android/inputmethod/keyboard/KeyboardView.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/KeyboardView.java b/java/src/com/android/inputmethod/keyboard/KeyboardView.java index 98426862c..70267a7ff 100644 --- a/java/src/com/android/inputmethod/keyboard/KeyboardView.java +++ b/java/src/com/android/inputmethod/keyboard/KeyboardView.java @@ -289,7 +289,7 @@ public class KeyboardView extends View implements PointerTracker.UIProxy { cancelPopupPreview(); cancelDismissPreview(); } - }; + } public KeyboardView(Context context, AttributeSet attrs) { this(context, attrs, R.attr.keyboardViewStyle); @@ -587,7 +587,7 @@ public class KeyboardView extends View implements PointerTracker.UIProxy { protected CharSequence adjustCase(CharSequence label) { if (mKeyboard.isShiftedOrShiftLocked() && label != null && label.length() < 3 && Character.isLowerCase(label.charAt(0))) { - label = label.toString().toUpperCase(); + return label.toString().toUpperCase(); } return label; } @@ -1089,7 +1089,7 @@ public class KeyboardView extends View implements PointerTracker.UIProxy { mKeyboardActionListener.onKey(Keyboard.CODE_CAPSLOCK, null, 0, 0); } - private void onDoubleTapShiftKey(PointerTracker tracker) { + private void onDoubleTapShiftKey(@SuppressWarnings("unused") PointerTracker tracker) { // When shift key is double tapped, the first tap is correctly processed as usual tap. And // the second tap is treated as this double tap event, so that we need not mark tracker // calling setAlreadyProcessed() nor remove the tracker from mPointerQueueueue. @@ -1126,15 +1126,19 @@ public class KeyboardView extends View implements PointerTracker.UIProxy { @Override public void swipeLeft() { + // Nothing to do. } @Override public void swipeRight() { + // Nothing to do. } @Override public void swipeUp() { + // Nothing to do. } @Override public void swipeDown() { + // Nothing to do. } @Override public void onPress(int primaryCode) { |
