mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Final nit fixes for Cue/SubtitlePainter
This commit is contained in:
parent
539072dbf4
commit
11c16d83fd
2 changed files with 3 additions and 2 deletions
|
|
@ -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 {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue