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
5563dc3a
Commit
5563dc3a
authored
11 years ago
by
Satoshi Kataoka
Browse files
Options
Downloads
Patches
Plain Diff
Show all languages if user enables multiple subtypes
Bug: 8976598 Change-Id: I1c3c1ede1235f696eafb3a68ec5c29479768dd0f
parent
665e4ecc
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/userdictionary/UserDictionaryList.java
+9
-3
9 additions, 3 deletions
.../inputmethod/latin/userdictionary/UserDictionaryList.java
with
9 additions
and
3 deletions
java/src/com/android/inputmethod/latin/userdictionary/UserDictionaryList.java
+
9
−
3
View file @
5563dc3a
...
@@ -107,13 +107,19 @@ public class UserDictionaryList extends PreferenceFragment {
...
@@ -107,13 +107,19 @@ public class UserDictionaryList extends PreferenceFragment {
protected
void
createUserDictSettings
(
PreferenceGroup
userDictGroup
)
{
protected
void
createUserDictSettings
(
PreferenceGroup
userDictGroup
)
{
final
Activity
activity
=
getActivity
();
final
Activity
activity
=
getActivity
();
userDictGroup
.
removeAll
();
userDictGroup
.
removeAll
();
final
TreeSet
<
String
>
locale
Lis
t
=
final
TreeSet
<
String
>
locale
Se
t
=
UserDictionaryList
.
getUserDictionaryLocalesSet
(
activity
);
UserDictionaryList
.
getUserDictionaryLocalesSet
(
activity
);
if
(
localeList
.
isEmpty
())
{
if
(
localeSet
.
size
()
>
1
)
{
// Have an "All languages" entry in the languages list if there are two or more active
// languages
localeSet
.
add
(
""
);
}
if
(
localeSet
.
isEmpty
())
{
userDictGroup
.
addPreference
(
createUserDictionaryPreference
(
null
,
activity
));
userDictGroup
.
addPreference
(
createUserDictionaryPreference
(
null
,
activity
));
}
else
{
}
else
{
for
(
String
locale
:
locale
Lis
t
)
{
for
(
String
locale
:
locale
Se
t
)
{
userDictGroup
.
addPreference
(
createUserDictionaryPreference
(
locale
,
activity
));
userDictGroup
.
addPreference
(
createUserDictionaryPreference
(
locale
,
activity
));
}
}
}
}
...
...
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