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
5cb10f78
Commit
5cb10f78
authored
13 years ago
by
Tadashi G. Takaoka
Browse files
Options
Downloads
Patches
Plain Diff
Fix possible NPE
Bug: 5171442 Change-Id: I280f6a0ef5fb06f1e03e17c0065d078604e4747a
parent
1d66cc1b
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/latin/CandidateView.java
+1
-0
1 addition, 0 deletions
java/src/com/android/inputmethod/latin/CandidateView.java
with
1 addition
and
0 deletions
java/src/com/android/inputmethod/latin/CandidateView.java
+
1
−
0
View file @
5cb10f78
...
@@ -633,6 +633,7 @@ public class CandidateView extends LinearLayout implements OnClickListener, OnLo
...
@@ -633,6 +633,7 @@ public class CandidateView extends LinearLayout implements OnClickListener, OnLo
private
static
CharSequence
getEllipsizedText
(
CharSequence
text
,
int
maxWidth
,
private
static
CharSequence
getEllipsizedText
(
CharSequence
text
,
int
maxWidth
,
TextPaint
paint
)
{
TextPaint
paint
)
{
if
(
text
==
null
)
return
null
;
paint
.
setTextScaleX
(
1.0f
);
paint
.
setTextScaleX
(
1.0f
);
final
int
width
=
getTextWidth
(
text
,
paint
);
final
int
width
=
getTextWidth
(
text
,
paint
);
if
(
width
<=
maxWidth
)
{
if
(
width
<=
maxWidth
)
{
...
...
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