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
165725ab
Commit
165725ab
authored
12 years ago
by
Tadashi G. Takaoka
Browse files
Options
Downloads
Patches
Plain Diff
Fix build
Related-change: I173a3dc0 Change-Id: I4b5adedb70f7501e84fd3604aa240161c97dc713
parent
8e50c5d1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
java/src/com/android/inputmethod/latin/AdditionalSubtype.java
+2
-2
2 additions, 2 deletions
.../src/com/android/inputmethod/latin/AdditionalSubtype.java
java/src/com/android/inputmethod/latin/SubtypeLocale.java
+3
-4
3 additions, 4 deletions
java/src/com/android/inputmethod/latin/SubtypeLocale.java
with
5 additions
and
6 deletions
java/src/com/android/inputmethod/latin/AdditionalSubtype.java
+
2
−
2
View file @
165725ab
...
@@ -43,8 +43,8 @@ public class AdditionalSubtype {
...
@@ -43,8 +43,8 @@ public class AdditionalSubtype {
String
localeString
,
String
keyboardLayoutSetName
,
String
extraValue
)
{
String
localeString
,
String
keyboardLayoutSetName
,
String
extraValue
)
{
final
String
layoutExtraValue
=
KEYBOARD_LAYOUT_SET
+
"="
+
keyboardLayoutSetName
;
final
String
layoutExtraValue
=
KEYBOARD_LAYOUT_SET
+
"="
+
keyboardLayoutSetName
;
final
String
layoutDisplayNameExtraValue
;
final
String
layoutDisplayNameExtraValue
;
if
(
SubtypeLocale
.
isExceptionalLocale
(
localeString
)
if
(
Build
.
VERSION
.
SDK_INT
>=
/* JELLY_BEAN */
15
&&
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
JELLY_BEAN
)
{
&&
SubtypeLocale
.
isExceptionalLocale
(
localeString
)
)
{
final
String
layoutDisplayName
=
SubtypeLocale
.
getKeyboardLayoutSetDisplayName
(
final
String
layoutDisplayName
=
SubtypeLocale
.
getKeyboardLayoutSetDisplayName
(
keyboardLayoutSetName
);
keyboardLayoutSetName
);
layoutDisplayNameExtraValue
=
StringUtils
.
appendToCsvIfNotExists
(
layoutDisplayNameExtraValue
=
StringUtils
.
appendToCsvIfNotExists
(
...
...
This diff is collapsed.
Click to expand it.
java/src/com/android/inputmethod/latin/SubtypeLocale.java
+
3
−
4
View file @
165725ab
...
@@ -112,8 +112,7 @@ public class SubtypeLocale {
...
@@ -112,8 +112,7 @@ public class SubtypeLocale {
}
}
public
static
int
getSubtypeNameId
(
String
localeString
,
String
keyboardLayoutName
)
{
public
static
int
getSubtypeNameId
(
String
localeString
,
String
keyboardLayoutName
)
{
if
(
isExceptionalLocale
(
localeString
)
if
(
Build
.
VERSION
.
SDK_INT
>=
/* JELLY_BEAN */
15
&&
isExceptionalLocale
(
localeString
))
{
&&
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
JELLY_BEAN
)
{
return
sExceptionalLocaleToWithLayoutNameIdsMap
.
get
(
localeString
);
return
sExceptionalLocaleToWithLayoutNameIdsMap
.
get
(
localeString
);
}
}
final
String
key
=
localeString
.
equals
(
NO_LANGUAGE
)
final
String
key
=
localeString
.
equals
(
NO_LANGUAGE
)
...
@@ -148,8 +147,8 @@ public class SubtypeLocale {
...
@@ -148,8 +147,8 @@ public class SubtypeLocale {
// zz azerty T No language (AZERTY) in system locale
// zz azerty T No language (AZERTY) in system locale
public
static
String
getSubtypeDisplayName
(
final
InputMethodSubtype
subtype
,
Resources
res
)
{
public
static
String
getSubtypeDisplayName
(
final
InputMethodSubtype
subtype
,
Resources
res
)
{
final
String
replacementString
=
final
String
replacementString
=
(
Build
.
VERSION
.
SDK_INT
>=
/* JELLY_BEAN */
15
subtype
.
containsExtraValueKey
(
UNTRANSLATABLE_STRING_IN_SUBTYPE_NAME
)
&&
subtype
.
containsExtraValueKey
(
UNTRANSLATABLE_STRING_IN_SUBTYPE_NAME
)
)
?
subtype
.
getExtraValueOf
(
UNTRANSLATABLE_STRING_IN_SUBTYPE_NAME
)
?
subtype
.
getExtraValueOf
(
UNTRANSLATABLE_STRING_IN_SUBTYPE_NAME
)
:
getSubtypeLocaleDisplayName
(
subtype
.
getLocale
());
:
getSubtypeLocaleDisplayName
(
subtype
.
getLocale
());
final
int
nameResId
=
subtype
.
getNameResId
();
final
int
nameResId
=
subtype
.
getNameResId
();
...
...
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