Make applicationSpecifiedCompletionOn final.
This is the last one (whew) Also move a somewhat unrelated initialization out of the input attribute initialization function. Change-Id: Icc77b32fd16b112ab43786715061b1c9dca31c04
This commit is contained in:
parent
9cc1312eee
commit
ccc35f7fa7
1 changed files with 6 additions and 4 deletions
|
@ -755,6 +755,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
// Note: This call should be done by InputMethodService?
|
// Note: This call should be done by InputMethodService?
|
||||||
updateFullscreenMode();
|
updateFullscreenMode();
|
||||||
initializeInputAttributes(editorInfo);
|
initializeInputAttributes(editorInfo);
|
||||||
|
mApplicationSpecifiedCompletions = null;
|
||||||
|
|
||||||
inputView.closing();
|
inputView.closing();
|
||||||
mEnteredText = null;
|
mEnteredText = null;
|
||||||
|
@ -801,17 +802,17 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
final boolean insertSpaceOnPickSuggestionManually;
|
final boolean insertSpaceOnPickSuggestionManually;
|
||||||
final boolean inputTypeNoAutoCorrect;
|
final boolean inputTypeNoAutoCorrect;
|
||||||
final boolean isSettingsSuggestionStripOn;
|
final boolean isSettingsSuggestionStripOn;
|
||||||
boolean applicationSpecifiedCompletionOn = false;
|
final boolean applicationSpecifiedCompletionOn;
|
||||||
|
|
||||||
if (editorInfo == null || editorInfo.inputType != InputType.TYPE_CLASS_TEXT) {
|
if (editorInfo == null || editorInfo.inputType != InputType.TYPE_CLASS_TEXT) {
|
||||||
if (editorInfo.inputType == InputType.TYPE_NULL) {
|
if (editorInfo.inputType == InputType.TYPE_NULL) {
|
||||||
// TODO: We should honor TYPE_NULL specification.
|
// TODO: We should honor TYPE_NULL specification.
|
||||||
Log.i(TAG, "InputType.TYPE_NULL is specified");
|
Log.i(TAG, "InputType.TYPE_NULL is specified");
|
||||||
}
|
}
|
||||||
mApplicationSpecifiedCompletions = null;
|
|
||||||
insertSpaceOnPickSuggestionManually = false;
|
insertSpaceOnPickSuggestionManually = false;
|
||||||
isSettingsSuggestionStripOn = false;
|
isSettingsSuggestionStripOn = false;
|
||||||
inputTypeNoAutoCorrect = false;
|
inputTypeNoAutoCorrect = false;
|
||||||
|
applicationSpecifiedCompletionOn = false;
|
||||||
} else {
|
} else {
|
||||||
final int inputType = editorInfo.inputType;
|
final int inputType = editorInfo.inputType;
|
||||||
final int inputClass = inputType & InputType.TYPE_MASK_CLASS;
|
final int inputClass = inputType & InputType.TYPE_MASK_CLASS;
|
||||||
|
@ -830,8 +831,6 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
final boolean flagAutoComplete =
|
final boolean flagAutoComplete =
|
||||||
0 != (inputType & InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE);
|
0 != (inputType & InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE);
|
||||||
|
|
||||||
mApplicationSpecifiedCompletions = null;
|
|
||||||
|
|
||||||
// Make sure that passwords are not displayed in {@link SuggestionsView}.
|
// Make sure that passwords are not displayed in {@link SuggestionsView}.
|
||||||
if (InputTypeCompatUtils.isPasswordInputType(inputType)
|
if (InputTypeCompatUtils.isPasswordInputType(inputType)
|
||||||
|| InputTypeCompatUtils.isVisiblePasswordInputType(inputType)
|
|| InputTypeCompatUtils.isVisiblePasswordInputType(inputType)
|
||||||
|
@ -865,8 +864,11 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
} else {
|
} else {
|
||||||
inputTypeNoAutoCorrect = false;
|
inputTypeNoAutoCorrect = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flagAutoComplete) {
|
if (flagAutoComplete) {
|
||||||
applicationSpecifiedCompletionOn = isFullscreenMode();
|
applicationSpecifiedCompletionOn = isFullscreenMode();
|
||||||
|
} else {
|
||||||
|
applicationSpecifiedCompletionOn = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue