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
47b71c82
Commit
47b71c82
authored
11 years ago
by
Tadashi G. Takaoka
Browse files
Options
Downloads
Patches
Plain Diff
Fix keyStyle flags handling
Change-Id: Ia0d21f7a00ff99eae89c746244484d6fa3f0f44e
parent
4e6e9ef3
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/keyboard/internal/KeyStylesSet.java
+6
-4
6 additions, 4 deletions
...m/android/inputmethod/keyboard/internal/KeyStylesSet.java
with
6 additions
and
4 deletions
java/src/com/android/inputmethod/keyboard/internal/KeyStylesSet.java
+
6
−
4
View file @
47b71c82
...
@@ -124,10 +124,11 @@ public final class KeyStylesSet {
...
@@ -124,10 +124,11 @@ public final class KeyStylesSet {
@Override
@Override
public
int
getFlags
(
final
TypedArray
a
,
final
int
index
)
{
public
int
getFlags
(
final
TypedArray
a
,
final
int
index
)
{
final
int
parentFlags
=
mStyles
.
get
(
mParentStyleName
).
getFlags
(
a
,
index
);
final
Integer
value
=
(
Integer
)
mStyleAttributes
.
get
(
index
);
final
Integer
value
=
(
Integer
)
mStyleAttributes
.
get
(
index
);
final
int
flags
=
a
.
getInt
(
index
,
(
value
!=
null
)
?
value
:
0
)
;
final
int
styleFlags
=
(
value
!=
null
)
?
value
:
0
;
final
KeyStyle
parentStyle
=
mStyles
.
get
(
mParentStyleName
);
final
int
flags
=
a
.
getInt
(
index
,
0
);
return
flags
|
parentStyle
.
getFlags
(
a
,
index
)
;
return
flags
|
styleFlags
|
parentFlags
;
}
}
public
void
readKeyAttributes
(
final
TypedArray
keyAttr
)
{
public
void
readKeyAttributes
(
final
TypedArray
keyAttr
)
{
...
@@ -163,7 +164,8 @@ public final class KeyStylesSet {
...
@@ -163,7 +164,8 @@ public final class KeyStylesSet {
private
void
readFlags
(
final
TypedArray
a
,
final
int
index
)
{
private
void
readFlags
(
final
TypedArray
a
,
final
int
index
)
{
if
(
a
.
hasValue
(
index
))
{
if
(
a
.
hasValue
(
index
))
{
final
Integer
value
=
(
Integer
)
mStyleAttributes
.
get
(
index
);
final
Integer
value
=
(
Integer
)
mStyleAttributes
.
get
(
index
);
mStyleAttributes
.
put
(
index
,
a
.
getInt
(
index
,
0
)
|
(
value
!=
null
?
value
:
0
));
final
int
styleFlags
=
value
!=
null
?
value
:
0
;
mStyleAttributes
.
put
(
index
,
a
.
getInt
(
index
,
0
)
|
styleFlags
);
}
}
}
}
...
...
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