mirror of
https://github.com/samsonjs/media.git
synced 2026-04-12 12:25:47 +00:00
Simplify boolean ternary statements in SsaStyle
PiperOrigin-RevId: 370902227
This commit is contained in:
parent
f56c1a1253
commit
df25cefd7a
1 changed files with 4 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue