aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-12-20 21:34:07 +0900
committerJean Chalard <jchalard@google.com>2013-12-20 21:34:07 +0900
commit07f7536b04142c00188bc52e96922904dd07e763 (patch)
treebc77e71a2d0f264a9bf032f7d5d03efd25a70841 /java/src
parent1587be697752b12e18d5cadb90e56883cb93c242 (diff)
downloadlatinime-07f7536b04142c00188bc52e96922904dd07e763.tar.gz
latinime-07f7536b04142c00188bc52e96922904dd07e763.tar.xz
latinime-07f7536b04142c00188bc52e96922904dd07e763.zip
[IL32] Remove a useless variable
Change-Id: I8f5d8fd8c1627a568df57255dc3dceda26c4720c
Diffstat (limited to 'java/src')
-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