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
9ab6c961
authored
Jan 15, 2016
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Make TtmlColorParser comment a little clearer.
parent
c60dac7c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
library/src/main/java/com/google/android/exoplayer/text/ttml/TtmlColorParser.java
library/src/main/java/com/google/android/exoplayer/text/ttml/TtmlColorParser.java
View file @
9ab6c961
...
...
@@ -88,7 +88,7 @@ import java.util.regex.Pattern;
Assertions
.
checkArgument
(!
TextUtils
.
isEmpty
(
colorExpression
));
colorExpression
=
colorExpression
.
replace
(
" "
,
""
);
if
(
colorExpression
.
charAt
(
0
)
==
'#'
)
{
// Parse using Long to avoid failure when
the unsigned value exceeds (2^31 - 1)
.
// Parse using Long to avoid failure when
colorExpression is greater than #7FFFFFFF
.
int
color
=
(
int
)
Long
.
parseLong
(
colorExpression
.
substring
(
1
),
16
);
if
(
colorExpression
.
length
()
==
7
)
{
// Set the alpha value
...
...
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