Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
11c16d83
authored
Feb 20, 2017
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Final nit fixes for Cue/SubtitlePainter
parent
539072db
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
library/src/main/java/com/google/android/exoplayer2/text/Cue.java
library/src/main/java/com/google/android/exoplayer2/ui/SubtitlePainter.java
library/src/main/java/com/google/android/exoplayer2/text/Cue.java
View file @
11c16d83
...
@@ -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 {
}
}
/**
/**
* C
onstruct
s a text cue whose {@link #textAlignment} is null, whose type parameters are set to
* C
reate
s 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}.
...
...
library/src/main/java/com/google/android/exoplayer2/ui/SubtitlePainter.java
View file @
11c16d83
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment