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
a4463d7a
Commit
a4463d7a
authored
11 years ago
by
Tadashi G. Takaoka
Browse files
Options
Downloads
Patches
Plain Diff
More precise geometry checking for more keys keyboard
Bug: 8484528 Change-Id: I0dd09530a5262fee9c19bb0f11d5830b00306944
parent
cdaee868
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/keyboard/MoreKeysKeyboard.java
+3
-2
3 additions, 2 deletions
...rc/com/android/inputmethod/keyboard/MoreKeysKeyboard.java
with
3 additions
and
2 deletions
java/src/com/android/inputmethod/keyboard/MoreKeysKeyboard.java
+
3
−
2
View file @
a4463d7a
...
@@ -73,10 +73,11 @@ public final class MoreKeysKeyboard extends Keyboard {
...
@@ -73,10 +73,11 @@ public final class MoreKeysKeyboard extends Keyboard {
final
int
rowHeight
,
final
int
coordXInParent
,
final
int
parentKeyboardWidth
,
final
int
rowHeight
,
final
int
coordXInParent
,
final
int
parentKeyboardWidth
,
final
boolean
isFixedColumnOrder
,
final
int
dividerWidth
)
{
final
boolean
isFixedColumnOrder
,
final
int
dividerWidth
)
{
mIsFixedOrder
=
isFixedColumnOrder
;
mIsFixedOrder
=
isFixedColumnOrder
;
if
(
parentKeyboardWidth
/
keyWidth
<
maxColumns
)
{
if
(
parentKeyboardWidth
/
keyWidth
<
Math
.
min
(
numKeys
,
maxColumns
)
)
{
throw
new
IllegalArgumentException
(
throw
new
IllegalArgumentException
(
"Keyboard is too small to hold more keys keyboard: "
"Keyboard is too small to hold more keys keyboard: "
+
parentKeyboardWidth
+
" "
+
keyWidth
+
" "
+
maxColumns
);
+
parentKeyboardWidth
+
" "
+
keyWidth
+
" "
+
numKeys
+
" "
+
maxColumns
);
}
}
mDefaultKeyWidth
=
keyWidth
;
mDefaultKeyWidth
=
keyWidth
;
mDefaultRowHeight
=
rowHeight
;
mDefaultRowHeight
=
rowHeight
;
...
...
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