diff options
author | 2011-09-09 18:12:58 +0900 | |
---|---|---|
committer | 2011-09-09 18:44:48 +0900 | |
commit | 1ecf0fb5d75ae62a10314c67812d7dfe9a2b0084 (patch) | |
tree | 4915772ea09779657a51b05cad3d112b48aec6b6 /java/src | |
parent | 530b4176c2a53ef5599eb3a89fcf3ebff90fa84f (diff) | |
download | latinime-1ecf0fb5d75ae62a10314c67812d7dfe9a2b0084.tar.gz latinime-1ecf0fb5d75ae62a10314c67812d7dfe9a2b0084.tar.xz latinime-1ecf0fb5d75ae62a10314c67812d7dfe9a2b0084.zip |
Remove the exception in SubtypeSwitcher
Bug: 5261455
Change-Id: Idb070702418caeb6cb975849d71b39952ac4afab
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/SubtypeSwitcher.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java b/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java index f9dda6a40..8a4862094 100644 --- a/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java +++ b/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java @@ -258,7 +258,6 @@ public class SubtypeSwitcher { triggerVoiceIME(); } } else { - Log.w(TAG, "Unknown subtype mode: " + newMode); if (VOICE_MODE.equals(oldMode) && mVoiceInputWrapper != null) { // We need to reset the voice input to release the resources and to reset its status // as it is not the current input mode. @@ -271,8 +270,14 @@ public class SubtypeSwitcher { packageName, 0).versionCode; } catch (NameNotFoundException e) { } - throw new RuntimeException("Unknown subtype mode: " + version + ", " + packageName - + ", " + mVoiceInputWrapper); + Log.w(TAG, "Unknown subtype mode: " + newMode + "," + version + ", " + packageName + + ", " + mVoiceInputWrapper + ". IME is already changed to other IME."); + if (newSubtype != null) { + Log.w(TAG, "Subtype mode:" + newSubtype.getMode()); + Log.w(TAG, "Subtype locale:" + newSubtype.getLocale()); + Log.w(TAG, "Subtype extra value:" + newSubtype.getExtraValue()); + Log.w(TAG, "Subtype is auxiliary:" + newSubtype.isAuxiliary()); + } } } |