From f8e30a91537b8b4920887d0d4f0771de3a23c4cb Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Mon, 8 Nov 2010 23:24:19 -0800 Subject: Refactor calling KeyboardSwitcher.setKeyboardMode This change also eliminates unnecessary recursive call in KeyboardSwitcher.setKeyboardMode. Change-Id: Iff25fe23b34227d526dee0bbe8710842545c2afa --- java/src/com/android/inputmethod/latin/KeyboardSwitcher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'java/src/com/android/inputmethod/latin/KeyboardSwitcher.java') diff --git a/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java b/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java index a79cc2b22..08e9f94df 100644 --- a/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java +++ b/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java @@ -298,8 +298,8 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha mImeOptions = imeOptions; makeSymbolsKeyboardIds(); if (enableVoice != mHasVoice) { - // TODO clean up this unnecessary recursive call. - setVoiceMode(enableVoice, mVoiceOnPrimary); + mKeyboards.clear(); + mHasVoice = enableVoice; } mIsSymbols = isSymbols; -- cgit v1.2.3-83-g751a