diff options
author | 2014-04-14 15:33:30 +0900 | |
---|---|---|
committer | 2014-04-14 21:09:32 +0900 | |
commit | ddc163988a7e2e910ff3cac26ed580bac123fda0 (patch) | |
tree | 1d9e61cd7a3efd330fbc2e0347d368d6dc0ec7f6 /tests/src | |
parent | 30d5ed67d6548a4d7efa6354d41ac9719a4e4488 (diff) | |
download | latinime-ddc163988a7e2e910ff3cac26ed580bac123fda0.tar.gz latinime-ddc163988a7e2e910ff3cac26ed580bac123fda0.tar.xz latinime-ddc163988a7e2e910ff3cac26ed580bac123fda0.zip |
[IL134] Add an alternative path to getCurrentAutoCapsState
Bug: 8636060
Change-Id: I959e13d34910adad028ed6174f92029ff690eeeb
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/com/android/inputmethod/keyboard/internal/MockKeyboardSwitcher.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/src/com/android/inputmethod/keyboard/internal/MockKeyboardSwitcher.java b/tests/src/com/android/inputmethod/keyboard/internal/MockKeyboardSwitcher.java index 6e3e37add..7b1a2355c 100644 --- a/tests/src/com/android/inputmethod/keyboard/internal/MockKeyboardSwitcher.java +++ b/tests/src/com/android/inputmethod/keyboard/internal/MockKeyboardSwitcher.java @@ -130,6 +130,12 @@ public class MockKeyboardSwitcher implements KeyboardState.SwitchActions { } @Override + public void requestUpdatingShiftState(final int currentAutoCapsState, + final int currentRecapitalizeState) { + mState.onUpdateShiftState(currentAutoCapsState, currentRecapitalizeState); + } + + @Override public void startDoubleTapShiftKeyTimer() { mIsInDoubleTapShiftKeyTimeout = true; } @@ -161,7 +167,12 @@ public class MockKeyboardSwitcher implements KeyboardState.SwitchActions { } public void onReleaseKey(final int code, final boolean withSliding) { - mState.onReleaseKey(code, withSliding); + onReleaseKey(code, withSliding, mAutoCapsState, RecapitalizeStatus.NOT_A_RECAPITALIZE_MODE); + } + + public void onReleaseKey(final int code, final boolean withSliding, + final int currentAutoCapsState, final int currentRecapitalizeState) { + mState.onReleaseKey(code, withSliding, currentAutoCapsState, currentRecapitalizeState); if (mLongPressTimeoutCode == code) { mLongPressTimeoutCode = 0; } |