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
1e992240
authored
Jan 02, 2019
by
andrewlewis
Committed by
Oliver Woodman
Jan 08, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove AdsLoader listeners on releasing ImaAdsLoader
Issue: #4114 PiperOrigin-RevId: 227516509
parent
3a9557c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
RELEASENOTES.md
extensions/ima/src/main/java/com/google/android/exoplayer2/ext/ima/ImaAdsLoader.java
RELEASENOTES.md
View file @
1e992240
...
...
@@ -27,6 +27,8 @@
*
Rename TaskState to DownloadState.
*
Add support for SHOUTcast ICY metadata
(
[
#3735
](
https://github.com/google/ExoPlayer/issues/3735
)
).
*
IMA extension: Clear ads loader listeners on release
(
[
#4114
](
https://github.com/google/ExoPlayer/issues/4114
)
).
### 2.9.3 ###
...
...
extensions/ima/src/main/java/com/google/android/exoplayer2/ext/ima/ImaAdsLoader.java
View file @
1e992240
...
...
@@ -598,6 +598,8 @@ public final class ImaAdsLoader
adsManager
.
destroy
();
adsManager
=
null
;
}
adsLoader
.
removeAdsLoadedListener
(
/* adsLoadedListener= */
this
);
adsLoader
.
removeAdErrorListener
(
/* adErrorListener= */
this
);
imaPausedContent
=
false
;
imaAdState
=
IMA_AD_STATE_NONE
;
pendingAdLoadError
=
null
;
...
...
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