summaryrefslogtreecommitdiff
path: root/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2012-04-12 15:33:48 +0900
committerTadashi G. Takaoka <takaoka@google.com>2012-04-12 15:35:44 +0900
commitf1678ba8024606349bc184cfeaead2be059f7b5b (patch)
treecd737c8a5ebc86ef9d06584d50b0ffe7e4bd26df /java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java
parent4c9b2504e2ce7204fc5a9a5f89f5016c320f3713 (diff)
Don't cancel key typing timer when new keyboard is set
This change also fixes some typos. Bug: 6312143 Change-Id: I5d752c05b128a47ed022a4a804b02559eeee6915
Diffstat (limited to 'java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java')
-rw-r--r--java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java b/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java
index 5ebf92cf7..a08c0743a 100644
--- a/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java
+++ b/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java
@@ -239,14 +239,10 @@ public class LatinKeyboardView extends KeyboardView implements PointerTracker.Ke
}
}
- private void cancelTypingStateTimer() {
- removeMessages(MSG_TYPING_STATE_EXPIRED);
- }
-
@Override
public void startTypingStateTimer() {
final boolean isTyping = isTypingState();
- cancelTypingStateTimer();
+ removeMessages(MSG_TYPING_STATE_EXPIRED);
sendMessageDelayed(
obtainMessage(MSG_TYPING_STATE_EXPIRED), mParams.mIgnoreAltCodeKeyTimeout);
if (isTyping) {
@@ -286,7 +282,6 @@ public class LatinKeyboardView extends KeyboardView implements PointerTracker.Ke
public void cancelAllMessages() {
cancelKeyTimers();
- cancelTypingStateTimer();
}
}