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
4e1f1689
Commit
4e1f1689
authored
10 years ago
by
Tadashi G. Takaoka
Committed by
Android Git Automerger
10 years ago
Browse files
Options
Downloads
Plain Diff
am
5ae05786
: Merge "Fix drawing of custom action label key" into lmp-dev
* commit '
5ae05786
': Fix drawing of custom action label key
parents
6e0e130e
5ae05786
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/keyboard/Key.java
+4
-0
4 additions, 0 deletions
java/src/com/android/inputmethod/keyboard/Key.java
java/src/com/android/inputmethod/keyboard/KeyboardView.java
+3
-1
3 additions, 1 deletion
java/src/com/android/inputmethod/keyboard/KeyboardView.java
with
7 additions
and
1 deletion
java/src/com/android/inputmethod/keyboard/Key.java
+
4
−
0
View file @
4e1f1689
...
@@ -702,6 +702,10 @@ public class Key implements Comparable<Key> {
...
@@ -702,6 +702,10 @@ public class Key implements Comparable<Key> {
return
((
mLabelFlags
|
defaultFlags
)
&
LABEL_FLAGS_KEEP_BACKGROUND_ASPECT_RATIO
)
!=
0
;
return
((
mLabelFlags
|
defaultFlags
)
&
LABEL_FLAGS_KEEP_BACKGROUND_ASPECT_RATIO
)
!=
0
;
}
}
public
final
boolean
hasCustomActionLabel
()
{
return
(
mLabelFlags
&
LABEL_FLAGS_FROM_CUSTOM_ACTION_LABEL
)
!=
0
;
}
private
final
boolean
isShiftedLetterActivated
()
{
private
final
boolean
isShiftedLetterActivated
()
{
return
(
mLabelFlags
&
LABEL_FLAGS_SHIFTED_LETTER_ACTIVATED
)
!=
0
return
(
mLabelFlags
&
LABEL_FLAGS_SHIFTED_LETTER_ACTIVATED
)
!=
0
&&
!
TextUtils
.
isEmpty
(
mHintLabel
);
&&
!
TextUtils
.
isEmpty
(
mHintLabel
);
...
...
This diff is collapsed.
Click to expand it.
java/src/com/android/inputmethod/keyboard/KeyboardView.java
+
3
−
1
View file @
4e1f1689
...
@@ -343,7 +343,9 @@ public class KeyboardView extends View {
...
@@ -343,7 +343,9 @@ public class KeyboardView extends View {
final
int
keyWidth
=
key
.
getDrawWidth
();
final
int
keyWidth
=
key
.
getDrawWidth
();
final
int
keyHeight
=
key
.
getHeight
();
final
int
keyHeight
=
key
.
getHeight
();
final
int
bgWidth
,
bgHeight
,
bgX
,
bgY
;
final
int
bgWidth
,
bgHeight
,
bgX
,
bgY
;
if
(
key
.
needsToKeepBackgroundAspectRatio
(
mDefaultKeyLabelFlags
))
{
if
(
key
.
needsToKeepBackgroundAspectRatio
(
mDefaultKeyLabelFlags
)
// HACK: To disable expanding normal/functional key background.
&&
!
key
.
hasCustomActionLabel
())
{
final
int
intrinsicWidth
=
background
.
getIntrinsicWidth
();
final
int
intrinsicWidth
=
background
.
getIntrinsicWidth
();
final
int
intrinsicHeight
=
background
.
getIntrinsicHeight
();
final
int
intrinsicHeight
=
background
.
getIntrinsicHeight
();
final
float
minScale
=
Math
.
min
(
final
float
minScale
=
Math
.
min
(
...
...
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