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
dfc38358
Commit
dfc38358
authored
10 years ago
by
Jean Chalard
Browse files
Options
Downloads
Patches
Plain Diff
Don't upcase suggestions when resuming on an uppercase word
Bug: 13917781 Change-Id: I7458d120898a7c8c0bc2db2f6db3578fd1dd1681
parent
06dd0ef8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/com/android/inputmethod/latin/Suggest.java
+4
-1
4 additions, 1 deletion
java/src/com/android/inputmethod/latin/Suggest.java
with
4 additions
and
1 deletion
java/src/com/android/inputmethod/latin/Suggest.java
+
4
−
1
View file @
dfc38358
...
...
@@ -112,7 +112,10 @@ public final class Suggest {
additionalFeaturesOptions
,
SESSION_TYPING
,
rawSuggestions
);
final
boolean
isFirstCharCapitalized
=
wordComposer
.
isFirstCharCapitalized
();
final
boolean
isAllUpperCase
=
wordComposer
.
isAllUpperCase
();
// If resumed, then we don't want to upcase everything: resuming on a fully-capitalized
// words is rarely done to switch to another fully-capitalized word, but usually to a
// normal, non-capitalized suggestion.
final
boolean
isAllUpperCase
=
wordComposer
.
isAllUpperCase
()
&&
!
wordComposer
.
isResumed
();
final
String
firstSuggestion
;
final
String
whitelistedWord
;
if
(
suggestionResults
.
isEmpty
())
{
...
...
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