Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
4fc0f6ab
Commit
4fc0f6ab
authored
13 years ago
by
Jean Chalard
Committed by
Android (Google) Code Review
13 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Make insertSpaceOnPickSuggestionManually final."
parents
2ad14a2e
ae0c109d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/com/android/inputmethod/latin/LatinIME.java
+18
-16
18 additions, 16 deletions
java/src/com/android/inputmethod/latin/LatinIME.java
with
18 additions
and
16 deletions
java/src/com/android/inputmethod/latin/LatinIME.java
+
18
−
16
View file @
4fc0f6ab
...
...
@@ -798,28 +798,30 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
private
void
initializeInputAttributes
(
final
EditorInfo
editorInfo
)
{
mInputAttributes
=
new
InputAttributes
(
editorInfo
);
boolean
insertSpaceOnPickSuggestionManually
=
false
;
final
boolean
insertSpaceOnPickSuggestionManually
;
boolean
inputTypeNoAutoCorrect
=
false
;
boolean
isSettingsSuggestionStripOn
=
false
;
boolean
applicationSpecifiedCompletionOn
=
false
;
if
(
editorInfo
==
null
)
return
;
final
int
inputType
=
editorInfo
.
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
,
editorInfo
.
imeOptions
));
}
if
(
editorInfo
==
null
||
editorInfo
.
inputType
!=
InputType
.
TYPE_CLASS_TEXT
)
{
if
(
editorInfo
.
inputType
==
InputType
.
TYPE_NULL
)
{
// TODO: We should honor TYPE_NULL specification.
Log
.
i
(
TAG
,
"InputType.TYPE_NULL is specified"
);
}
mApplicationSpecifiedCompletions
=
null
;
insertSpaceOnPickSuggestionManually
=
false
;
}
else
{
final
int
inputType
=
editorInfo
.
inputType
;
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
,
editorInfo
.
imeOptions
));
}
mApplicationSpecifiedCompletions
=
null
;
mApplicationSpecifiedCompletions
=
null
;
if
(
inputClass
==
InputType
.
TYPE_CLASS_TEXT
)
{
isSettingsSuggestionStripOn
=
true
;
// Make sure that passwords are not displayed in {@link SuggestionsView}.
if
(
InputTypeCompatUtils
.
isPasswordInputType
(
inputType
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment