aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorsatok <satok@google.com>2010-11-29 20:48:10 +0900
committersatok <satok@google.com>2010-11-30 11:10:50 +0900
commit965004fbe970e5e1bbff442d728997331b5f8007 (patch)
tree24f4887bb40a4cf30667865d60ebf6a93b5c4436 /java/src
parentd20208361b1025835cec6ce42bbfb877982ae763 (diff)
downloadlatinime-965004fbe970e5e1bbff442d728997331b5f8007.tar.gz
latinime-965004fbe970e5e1bbff442d728997331b5f8007.tar.xz
latinime-965004fbe970e5e1bbff442d728997331b5f8007.zip
Remove excessive call of onKeyboardLanguageChanged in SubtypeSwitcher
Change-Id: I8f85f9b053a70b8ad1755e4f343ac06ecd9e103b
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/SubtypeSwitcher.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java b/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java
index 4600f77d1..0e739e2f5 100644
--- a/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java
+++ b/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java
@@ -347,12 +347,12 @@ public class SubtypeSwitcher {
if (mVoiceInput == null && vi != null) {
// TODO: Remove requirements to construct KeyboardSwitcher
// when IME was enabled with Voice mode
- mService.onKeyboardLanguageChanged();
mVoiceInput = vi;
if (isVoiceMode()) {
if (DBG) {
Log.d(TAG, "Set and call voice input.");
}
+ mService.onKeyboardLanguageChanged();
mService.onKey(LatinKeyboardView.KEYCODE_VOICE, null, 0, 0);
return true;
}