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
4c6029e5
Commit
4c6029e5
authored
11 years ago
by
Jean Chalard
Browse files
Options
Downloads
Patches
Plain Diff
[IL92] Straighten out showSuggestionStripWithTypedWord
Bug: 8636060 Change-Id: I066ff29c76349f0ab61441ea5f7bc9085d24bdbc
parent
c6367ee6
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/LatinIME.java
+2
-7
2 additions, 7 deletions
java/src/com/android/inputmethod/latin/LatinIME.java
with
2 additions
and
7 deletions
java/src/com/android/inputmethod/latin/LatinIME.java
+
2
−
7
View file @
4c6029e5
...
@@ -1426,7 +1426,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
...
@@ -1426,7 +1426,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
private
void
showSuggestionStripWithTypedWord
(
final
SuggestedWords
sourceSuggestedWords
,
private
void
showSuggestionStripWithTypedWord
(
final
SuggestedWords
sourceSuggestedWords
,
final
String
typedWord
)
{
final
String
typedWord
)
{
// TODO: refactor this
final
SuggestedWords
suggestedWords
=
final
SuggestedWords
suggestedWords
=
sourceSuggestedWords
.
isEmpty
()
?
SuggestedWords
.
EMPTY
:
sourceSuggestedWords
;
sourceSuggestedWords
.
isEmpty
()
?
SuggestedWords
.
EMPTY
:
sourceSuggestedWords
;
final
String
autoCorrection
;
final
String
autoCorrection
;
...
@@ -1437,13 +1436,9 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
...
@@ -1437,13 +1436,9 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
// because it may differ from mWordComposer.mTypedWord.
// because it may differ from mWordComposer.mTypedWord.
autoCorrection
=
typedWord
;
autoCorrection
=
typedWord
;
}
}
if
(
suggestedWords
.
isEmpty
())
{
if
(
SuggestedWords
.
EMPTY
!=
suggestedWords
)
{
AccessibilityUtils
.
getInstance
().
setAutoCorrection
(
suggestedWords
,
typedWord
);
mInputLogic
.
mWordComposer
.
setAutoCorrection
(
autoCorrection
);
setSuggestedWords
(
suggestedWords
);
setAutoCorrectionIndicator
(
false
);
return
;
}
}
mInputLogic
.
mWordComposer
.
setAutoCorrection
(
autoCorrection
);
setSuggestedWords
(
suggestedWords
);
setSuggestedWords
(
suggestedWords
);
setAutoCorrectionIndicator
(
suggestedWords
.
mWillAutoCorrect
);
setAutoCorrectionIndicator
(
suggestedWords
.
mWillAutoCorrect
);
setSuggestionStripShown
(
isSuggestionsStripVisible
());
setSuggestionStripShown
(
isSuggestionsStripVisible
());
...
...
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