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
7d991cef
authored
Sep 14, 2016
by
ojw28
Committed by
GitHub
Sep 14, 2016
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge pull request #1822 from google/dev-v2
Fix crash on pre-api-21 devices.
parents
5512aae4
ab49425e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
library/src/main/java/com/google/android/exoplayer2/ui/PlaybackControlView.java
library/src/main/java/com/google/android/exoplayer2/ui/SimpleExoPlayerView.java
library/src/main/java/com/google/android/exoplayer2/ui/PlaybackControlView.java
View file @
7d991cef
...
@@ -97,7 +97,11 @@ public class PlaybackControlView extends FrameLayout {
...
@@ -97,7 +97,11 @@ public class PlaybackControlView extends FrameLayout {
}
}
public
PlaybackControlView
(
Context
context
,
AttributeSet
attrs
)
{
public
PlaybackControlView
(
Context
context
,
AttributeSet
attrs
)
{
super
(
context
,
attrs
);
this
(
context
,
attrs
,
0
);
}
public
PlaybackControlView
(
Context
context
,
AttributeSet
attrs
,
int
defStyleAttr
)
{
super
(
context
,
attrs
,
defStyleAttr
);
currentWindow
=
new
Timeline
.
Window
();
currentWindow
=
new
Timeline
.
Window
();
formatBuilder
=
new
StringBuilder
();
formatBuilder
=
new
StringBuilder
();
...
...
library/src/main/java/com/google/android/exoplayer2/ui/SimpleExoPlayerView.java
View file @
7d991cef
...
@@ -64,12 +64,7 @@ public final class SimpleExoPlayerView extends FrameLayout {
...
@@ -64,12 +64,7 @@ public final class SimpleExoPlayerView extends FrameLayout {
}
}
public
SimpleExoPlayerView
(
Context
context
,
AttributeSet
attrs
,
int
defStyleAttr
)
{
public
SimpleExoPlayerView
(
Context
context
,
AttributeSet
attrs
,
int
defStyleAttr
)
{
this
(
context
,
attrs
,
defStyleAttr
,
0
);
super
(
context
,
attrs
,
defStyleAttr
);
}
public
SimpleExoPlayerView
(
Context
context
,
AttributeSet
attrs
,
int
defStyleAttr
,
int
defStyleRes
)
{
super
(
context
,
attrs
,
defStyleAttr
,
defStyleRes
);
boolean
useTextureView
=
false
;
boolean
useTextureView
=
false
;
if
(
attrs
!=
null
)
{
if
(
attrs
!=
null
)
{
...
@@ -86,7 +81,6 @@ public final class SimpleExoPlayerView extends FrameLayout {
...
@@ -86,7 +81,6 @@ public final class SimpleExoPlayerView extends FrameLayout {
}
}
LayoutInflater
.
from
(
context
).
inflate
(
R
.
layout
.
exoplayer_video_view
,
this
);
LayoutInflater
.
from
(
context
).
inflate
(
R
.
layout
.
exoplayer_video_view
,
this
);
componentListener
=
new
ComponentListener
();
componentListener
=
new
ComponentListener
();
layout
=
(
AspectRatioFrameLayout
)
findViewById
(
R
.
id
.
video_frame
);
layout
=
(
AspectRatioFrameLayout
)
findViewById
(
R
.
id
.
video_frame
);
controller
=
(
PlaybackControlView
)
findViewById
(
R
.
id
.
control
);
controller
=
(
PlaybackControlView
)
findViewById
(
R
.
id
.
control
);
...
...
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