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
bf7503ae
Commit
bf7503ae
authored
11 years ago
by
Tadashi G. Takaoka
Committed by
Android (Google) Code Review
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Fix key top letter color in shifted layout"
parents
3e81d9c3
815a3392
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/Key.java
+6
-5
6 additions, 5 deletions
java/src/com/android/inputmethod/keyboard/Key.java
with
6 additions
and
5 deletions
java/src/com/android/inputmethod/keyboard/Key.java
+
6
−
5
View file @
bf7503ae
...
...
@@ -348,8 +348,7 @@ public class Key implements Comparable<Key> {
if
(
StringUtils
.
codePointCount
(
mLabel
)
==
1
)
{
// Use the first letter of the hint label if shiftedLetterActivated flag is
// specified.
if
(
hasShiftedLetterHint
()
&&
isShiftedLetterActivated
()
&&
!
TextUtils
.
isEmpty
(
mHintLabel
))
{
if
(
hasShiftedLetterHint
()
&&
isShiftedLetterActivated
())
{
mCode
=
mHintLabel
.
codePointAt
(
0
);
}
else
{
mCode
=
mLabel
.
codePointAt
(
0
);
...
...
@@ -687,7 +686,8 @@ public class Key implements Comparable<Key> {
}
public
final
boolean
hasShiftedLetterHint
()
{
return
(
mLabelFlags
&
LABEL_FLAGS_HAS_SHIFTED_LETTER_HINT
)
!=
0
;
return
(
mLabelFlags
&
LABEL_FLAGS_HAS_SHIFTED_LETTER_HINT
)
!=
0
&&
!
TextUtils
.
isEmpty
(
mHintLabel
);
}
public
final
boolean
hasHintLabel
()
{
...
...
@@ -710,8 +710,9 @@ public class Key implements Comparable<Key> {
return
(
mLabelFlags
&
LABEL_FLAGS_AUTO_SCALE
)
==
LABEL_FLAGS_AUTO_SCALE
;
}
public
final
boolean
isShiftedLetterActivated
()
{
return
(
mLabelFlags
&
LABEL_FLAGS_SHIFTED_LETTER_ACTIVATED
)
!=
0
;
private
final
boolean
isShiftedLetterActivated
()
{
return
(
mLabelFlags
&
LABEL_FLAGS_SHIFTED_LETTER_ACTIVATED
)
!=
0
&&
!
TextUtils
.
isEmpty
(
mHintLabel
);
}
public
final
int
getMoreKeysColumn
()
{
...
...
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