mirror of
https://github.com/androidx/media.git
synced 2025-05-11 09:39:52 +08:00
Remove AdsLoader listeners on releasing ImaAdsLoader
Issue: #4114 PiperOrigin-RevId: 227516509
This commit is contained in:
parent
e448ecdff8
commit
13638f1c29
@ -1,5 +1,10 @@
|
|||||||
# Release notes #
|
# Release notes #
|
||||||
|
|
||||||
|
### 2.9.4 ###
|
||||||
|
|
||||||
|
* IMA extension: Clear ads loader listeners on release
|
||||||
|
([#4114](https://github.com/google/ExoPlayer/issues/4114)).
|
||||||
|
|
||||||
### 2.9.3 ###
|
### 2.9.3 ###
|
||||||
|
|
||||||
* Captions: Support PNG subtitles in SMPTE-TT
|
* Captions: Support PNG subtitles in SMPTE-TT
|
||||||
|
@ -597,6 +597,8 @@ public final class ImaAdsLoader
|
|||||||
adsManager.destroy();
|
adsManager.destroy();
|
||||||
adsManager = null;
|
adsManager = null;
|
||||||
}
|
}
|
||||||
|
adsLoader.removeAdsLoadedListener(/* adsLoadedListener= */ this);
|
||||||
|
adsLoader.removeAdErrorListener(/* adErrorListener= */ this);
|
||||||
imaPausedContent = false;
|
imaPausedContent = false;
|
||||||
imaAdState = IMA_AD_STATE_NONE;
|
imaAdState = IMA_AD_STATE_NONE;
|
||||||
pendingAdLoadError = null;
|
pendingAdLoadError = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user