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
68eb7eb8
authored
May 26, 2021
by
olly
Committed by
Oliver Woodman
Jun 06, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix StyledPlayerView detachment
Issue: #8985 #minor-release PiperOrigin-RevId: 375913914
parent
f49c1447
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
RELEASENOTES.md
library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerView.java
RELEASENOTES.md
View file @
68eb7eb8
...
...
@@ -19,6 +19,10 @@
*
Keep subtitle language features embedded (e.g. rubies & tate-chu-yoko)
in
`Cue.text`
even when
`SubtitleView#setApplyEmbeddedStyles()`
is
false.
*
UI
*
Fix
`NullPointerException`
in
`StyledPlayerView`
that could occur after
calling
`StyledPlayerView.setPlayer(null)`
(
[
#8985
](
https://github.com/google/ExoPlayer/issues/8985
)
).
### 2.14.0 (2021-05-13)
...
...
library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerView.java
View file @
68eb7eb8
...
...
@@ -570,6 +570,7 @@ public class StyledPlayerView extends FrameLayout implements AdViewProvider {
}
@Nullable
Player
oldPlayer
=
this
.
player
;
if
(
oldPlayer
!=
null
)
{
oldPlayer
.
removeListener
(
componentListener
);
if
(
surfaceView
instanceof
TextureView
)
{
oldPlayer
.
clearVideoTextureView
((
TextureView
)
surfaceView
);
}
else
if
(
surfaceView
instanceof
SurfaceView
)
{
...
...
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