From 11c16d83fdf65c6f35d8852e08baa7b75ffe1a47 Mon Sep 17 00:00:00 2001 From: Oliver Woodman Date: Mon, 20 Feb 2017 13:13:13 +0000 Subject: [PATCH] Final nit fixes for Cue/SubtitlePainter --- .../src/main/java/com/google/android/exoplayer2/text/Cue.java | 3 ++- .../java/com/google/android/exoplayer2/ui/SubtitlePainter.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/library/src/main/java/com/google/android/exoplayer2/text/Cue.java b/library/src/main/java/com/google/android/exoplayer2/text/Cue.java index 96cd76a957..176b8ea815 100644 --- a/library/src/main/java/com/google/android/exoplayer2/text/Cue.java +++ b/library/src/main/java/com/google/android/exoplayer2/text/Cue.java @@ -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}. diff --git a/library/src/main/java/com/google/android/exoplayer2/ui/SubtitlePainter.java b/library/src/main/java/com/google/android/exoplayer2/ui/SubtitlePainter.java index 6a1f31d270..5ca97403f1 100644 --- a/library/src/main/java/com/google/android/exoplayer2/ui/SubtitlePainter.java +++ b/library/src/main/java/com/google/android/exoplayer2/ui/SubtitlePainter.java @@ -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;