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
d1abf44b
Commit
d1abf44b
authored
7 months ago
by
Aleksandras Kostarevas
Browse files
Options
Downloads
Patches
Plain Diff
Update shouldSuppressSuggestions to be less suppressive
parent
58a21d77
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
java/src/org/futo/inputmethod/latin/InputAttributes.java
+5
-6
5 additions, 6 deletions
java/src/org/futo/inputmethod/latin/InputAttributes.java
java/src/org/futo/inputmethod/latin/uix/TextEditPopupActivity.kt
+2
-1
2 additions, 1 deletion
...c/org/futo/inputmethod/latin/uix/TextEditPopupActivity.kt
with
7 additions
and
7 deletions
java/src/org/futo/inputmethod/latin/InputAttributes.java
+
5
−
6
View file @
d1abf44b
...
...
@@ -101,14 +101,13 @@ public final class InputAttributes {
final
boolean
flagAutoComplete
=
0
!=
(
inputType
&
InputType
.
TYPE_TEXT_FLAG_AUTO_COMPLETE
);
final
boolean
forceNoSuggestionsByPrivateFlag
=
editorInfo
.
privateImeOptions
!=
null
&&
editorInfo
.
privateImeOptions
.
contains
(
"org.futo.inputmethod.latin.NoSuggestions=1"
);
// TODO: Have a helper method in InputTypeUtils
// Make sure that passwords are not displayed in {@link SuggestionStripView}.
final
boolean
shouldSuppressSuggestions
=
mIsPasswordField
//|| InputTypeUtils.isEmailVariation(variation)
//|| InputType.TYPE_TEXT_VARIATION_URI == variation
//|| InputType.TYPE_TEXT_VARIATION_FILTER == variation
//|| flagNoSuggestions
||
flagAutoComplete
;
||
forceNoSuggestionsByPrivateFlag
;
mShouldShowSuggestions
=
!
shouldSuppressSuggestions
;
mShouldInsertSpacesAutomatically
=
InputTypeUtils
.
isAutoSpaceFriendlyType
(
inputType
);
...
...
@@ -155,7 +154,7 @@ public final class InputAttributes {
noLearning
=
(
mEditorInfo
.
imeOptions
&
EditorInfo
.
IME_FLAG_NO_PERSONALIZED_LEARNING
)
!=
0
;
}
mNoLearning
=
noLearning
;
mNoLearning
=
noLearning
||
mIsPasswordField
;
}
public
boolean
isTypeNull
()
{
...
...
This diff is collapsed.
Click to expand it.
java/src/org/futo/inputmethod/latin/uix/TextEditPopupActivity.kt
+
2
−
1
View file @
d1abf44b
...
...
@@ -34,7 +34,8 @@ fun AndroidTextInput(allowPredictions: Boolean = true) {
inputType
=
EditorInfo
.
TYPE_CLASS_TEXT
isSingleLine
=
false
}
else
{
inputType
=
EditorInfo
.
TYPE_CLASS_TEXT
or
EditorInfo
.
TYPE_TEXT_FLAG_AUTO_COMPLETE
inputType
=
EditorInfo
.
TYPE_CLASS_TEXT
privateImeOptions
=
"org.futo.inputmethod.latin.NoSuggestions=1"
isSingleLine
=
true
}
...
...
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