Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8a7d68da
authored
Jul 16, 2015
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Don't render empty cues
parent
ebe9ae6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
library/src/main/java/com/google/android/exoplayer/text/CuePainter.java
library/src/main/java/com/google/android/exoplayer/text/CuePainter.java
View file @
8a7d68da
...
...
@@ -135,6 +135,11 @@ import android.util.Log;
*/
public
void
draw
(
Cue
cue
,
CaptionStyleCompat
style
,
float
fontScale
,
Canvas
canvas
,
int
cueBoxLeft
,
int
cueBoxTop
,
int
cueBoxRight
,
int
cueBoxBottom
)
{
if
(
TextUtils
.
isEmpty
(
cue
.
text
))
{
// Nothing to draw;
return
;
}
if
(
TextUtils
.
equals
(
cueText
,
cue
.
text
)
&&
cuePosition
==
cue
.
position
&&
Util
.
areEqual
(
cueAlignment
,
cue
.
alignment
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment