Final nit fixes for Cue/SubtitlePainter

This commit is contained in:
Oliver Woodman 2017-02-20 13:13:13 +00:00
parent 539072dbf4
commit 11c16d83fd
2 changed files with 3 additions and 2 deletions

View file

@ -180,6 +180,7 @@ public class Cue {
/**
* Creates an image cue.
*
* @param bitmap See {@link #bitmap}.
* @param horizontalPosition The position of the horizontal anchor within the viewport, expressed
* as a fraction of the viewport width.
* @param horizontalPositionAnchor The horizontal anchor. One of {@link #ANCHOR_TYPE_START},
@ -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}.
*
* @param text See {@link #text}.

View file

@ -325,7 +325,7 @@ import com.google.android.exoplayer2.util.Util;
}
private void drawTextLayout(Canvas canvas) {
final StaticLayout layout = textLayout;
StaticLayout layout = textLayout;
if (layout == null) {
// Nothing to draw.
return;