am 82c8c2e6
: Add warning log for unexpected inputType
* commit '82c8c2e6c00386ae9925fff68ea77bc448897cbd': Add warning log for unexpected inputType
This commit is contained in:
commit
18bade1b9b
1 changed files with 11 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue