aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2011-10-19 02:54:56 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-10-19 02:54:56 -0700
commit18bade1b9b4a81f341b26ba178a84c04dc18c27e (patch)
tree6c8a1a1f9f1a673087b9ee41453e78327e7f19bb /java/src/com/android/inputmethod/latin/LatinIME.java
parenta1b6e32cf4d70c6a15ef9d36dd9d8466feeff23b (diff)
parent82c8c2e6c00386ae9925fff68ea77bc448897cbd (diff)
downloadlatinime-18bade1b9b4a81f341b26ba178a84c04dc18c27e.tar.gz
latinime-18bade1b9b4a81f341b26ba178a84c04dc18c27e.tar.xz
latinime-18bade1b9b4a81f341b26ba178a84c04dc18c27e.zip
am 82c8c2e6: Add warning log for unexpected inputType
* commit '82c8c2e6c00386ae9925fff68ea77bc448897cbd': Add warning log for unexpected inputType
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 2bd173526..d12708db9 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -764,14 +764,24 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
if (attribute == null)
return;
final int inputType = attribute.inputType;
+ if (inputType == InputType.TYPE_NULL) {
+ // TODO: We should honor TYPE_NULL specification.
+ Log.i(TAG, "InputType.TYPE_NULL is specified");
+ }
+ final int inputClass = inputType & InputType.TYPE_MASK_CLASS;
final int variation = inputType & InputType.TYPE_MASK_VARIATION;
+ if (inputClass == 0) {
+ Log.w(TAG, String.format("Unexpected input class: inputType=0x%08x imeOptions=0x%08x",
+ inputType, attribute.imeOptions));
+ }
+
mShouldInsertMagicSpace = false;
mInputTypeNoAutoCorrect = false;
mIsSettingsSuggestionStripOn = false;
mApplicationSpecifiedCompletionOn = false;
mApplicationSpecifiedCompletions = null;
- if ((inputType & InputType.TYPE_MASK_CLASS) == InputType.TYPE_CLASS_TEXT) {
+ if (inputClass == InputType.TYPE_CLASS_TEXT) {
mIsSettingsSuggestionStripOn = true;
// Make sure that passwords are not displayed in {@link SuggestionsView}.
if (InputTypeCompatUtils.isPasswordInputType(inputType)