Commit 11c16d83 by Oliver Woodman

Final nit fixes for Cue/SubtitlePainter

parent 539072db
...@@ -180,6 +180,7 @@ public class Cue { ...@@ -180,6 +180,7 @@ public class Cue {
/** /**
* Creates an image cue. * Creates an image cue.
* *
* @param bitmap See {@link #bitmap}.
* @param horizontalPosition The position of the horizontal anchor within the viewport, expressed * @param horizontalPosition The position of the horizontal anchor within the viewport, expressed
* as a fraction of the viewport width. * as a fraction of the viewport width.
* @param horizontalPositionAnchor The horizontal anchor. One of {@link #ANCHOR_TYPE_START}, * @param horizontalPositionAnchor The horizontal anchor. One of {@link #ANCHOR_TYPE_START},
...@@ -197,7 +198,7 @@ public class Cue { ...@@ -197,7 +198,7 @@ public class Cue {
} }
/** /**
* Constructs a text cue whose {@link #textAlignment} is null, whose type parameters are set to * Creates a text cue whose {@link #textAlignment} is null, whose type parameters are set to
* {@link #TYPE_UNSET} and whose dimension parameters are set to {@link #DIMEN_UNSET}. * {@link #TYPE_UNSET} and whose dimension parameters are set to {@link #DIMEN_UNSET}.
* *
* @param text See {@link #text}. * @param text See {@link #text}.
......
...@@ -325,7 +325,7 @@ import com.google.android.exoplayer2.util.Util; ...@@ -325,7 +325,7 @@ import com.google.android.exoplayer2.util.Util;
} }
private void drawTextLayout(Canvas canvas) { private void drawTextLayout(Canvas canvas) {
final StaticLayout layout = textLayout; StaticLayout layout = textLayout;
if (layout == null) { if (layout == null) {
// Nothing to draw. // Nothing to draw.
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment