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
df25cefd
authored
Apr 28, 2021
by
ibaker
Committed by
bachinger
Apr 28, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Simplify boolean ternary statements in SsaStyle
PiperOrigin-RevId: 370902227
parent
f56c1a12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
library/core/src/main/java/com/google/android/exoplayer2/text/ssa/SsaStyle.java
library/core/src/main/java/com/google/android/exoplayer2/text/ssa/SsaStyle.java
View file @
df25cefd
...
...
@@ -142,17 +142,13 @@ import java.util.regex.Pattern;
?
parseFontSize
(
styleValues
[
format
.
fontSizeIndex
].
trim
())
:
Cue
.
DIMEN_UNSET
,
format
.
boldIndex
!=
C
.
INDEX_UNSET
?
parseBooleanValue
(
styleValues
[
format
.
boldIndex
].
trim
())
:
false
,
&&
parseBooleanValue
(
styleValues
[
format
.
boldIndex
].
trim
()),
format
.
italicIndex
!=
C
.
INDEX_UNSET
?
parseBooleanValue
(
styleValues
[
format
.
italicIndex
].
trim
())
:
false
,
&&
parseBooleanValue
(
styleValues
[
format
.
italicIndex
].
trim
()),
format
.
underlineIndex
!=
C
.
INDEX_UNSET
?
parseBooleanValue
(
styleValues
[
format
.
underlineIndex
].
trim
())
:
false
,
&&
parseBooleanValue
(
styleValues
[
format
.
underlineIndex
].
trim
()),
format
.
strikeoutIndex
!=
C
.
INDEX_UNSET
?
parseBooleanValue
(
styleValues
[
format
.
strikeoutIndex
].
trim
())
:
false
);
&&
parseBooleanValue
(
styleValues
[
format
.
strikeoutIndex
].
trim
()));
}
catch
(
RuntimeException
e
)
{
Log
.
w
(
TAG
,
"Skipping malformed 'Style:' line: '"
+
styleLine
+
"'"
,
e
);
return
null
;
...
...
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