aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-12-20 04:43:04 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-12-20 04:43:04 -0800
commit63af3481d47ba7dd3a034952f543c1daec48ee99 (patch)
treebc77e71a2d0f264a9bf032f7d5d03efd25a70841
parent5da418775cb8fbb9d085b78d740c7fbf8b9b5811 (diff)
parent07f7536b04142c00188bc52e96922904dd07e763 (diff)
downloadlatinime-63af3481d47ba7dd3a034952f543c1daec48ee99.tar.gz
latinime-63af3481d47ba7dd3a034952f543c1daec48ee99.tar.xz
latinime-63af3481d47ba7dd3a034952f543c1daec48ee99.zip
am 07f7536b: [IL32] Remove a useless variable
* commit '07f7536b04142c00188bc52e96922904dd07e763': [IL32] Remove a useless variable
-rw-r--r--java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
index 96852f0bc..d2a015094 100644
--- a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
+++ b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
@@ -193,7 +193,6 @@ public final class InputLogic {
}
mLastKeyTime = when;
mConnection.beginBatchEdit();
- final KeyboardSwitcher switcher = keyboardSwitcher;
// The space state depends only on the last character pressed and its own previous
// state. Here, we revert the space state to neutral if the key is actually modifying
// the input contents (any non-shift key), which is what we should do for
@@ -218,7 +217,7 @@ public final class InputLogic {
case Constants.CODE_SHIFT:
// Note: Calling back to the keyboard on Shift key is handled in
// {@link #onPressKey(int,int,boolean)} and {@link #onReleaseKey(int,boolean)}.
- final Keyboard currentKeyboard = switcher.getKeyboard();
+ final Keyboard currentKeyboard = keyboardSwitcher.getKeyboard();
if (null != currentKeyboard && currentKeyboard.mId.isAlphabetKeyboard()) {
// TODO: Instead of checking for alphabetic keyboard here, separate keycodes for
// alphabetic shift and shift while in symbol layout.
@@ -285,7 +284,7 @@ public final class InputLogic {
code, x, y, spaceState, keyboardSwitcher, handler);
break;
}
- switcher.onCodeInput(code);
+ keyboardSwitcher.onCodeInput(code);
// Reset after any single keystroke, except shift, capslock, and symbol-shift
if (!didAutoCorrect && code != Constants.CODE_SHIFT
&& code != Constants.CODE_CAPSLOCK