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
a8c9946b
Commit
a8c9946b
authored
12 years ago
by
Jean Chalard
Committed by
Android (Google) Code Review
12 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Remember the locale in the Suggest object (A1)"
parents
7bb8e95b
8e17f6d9
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/Suggest.java
+5
-0
5 additions, 0 deletions
java/src/com/android/inputmethod/latin/Suggest.java
with
5 additions
and
0 deletions
java/src/com/android/inputmethod/latin/Suggest.java
+
5
−
0
View file @
a8c9946b
...
...
@@ -91,16 +91,21 @@ public class Suggest {
private
boolean
mIsAllUpperCase
;
private
int
mTrailingSingleQuotesCount
;
// Locale used for upper- and title-casing words
final
private
Locale
mLocale
;
private
static
final
int
MINIMUM_SAFETY_NET_CHAR_LENGTH
=
4
;
public
Suggest
(
final
Context
context
,
final
Locale
locale
)
{
initAsynchronously
(
context
,
locale
);
mLocale
=
locale
;
}
/* package for test */
Suggest
(
final
Context
context
,
final
File
dictionary
,
final
long
startOffset
,
final
long
length
,
final
Locale
locale
)
{
final
Dictionary
mainDict
=
DictionaryFactory
.
createDictionaryForTest
(
context
,
dictionary
,
startOffset
,
length
/* useFullEditDistance */
,
false
,
locale
);
mLocale
=
locale
;
mMainDictionary
=
mainDict
;
addOrReplaceDictionary
(
mDictionaries
,
DICT_KEY_MAIN
,
mainDict
);
initWhitelistAndAutocorrectAndPool
(
context
,
locale
);
...
...
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