fix: remove lifecycle listener after component unmount (#3489)

- fix issue #3488
This commit is contained in:
YangJH 2024-01-20 21:29:29 +09:00 committed by GitHub
parent e1899cf925
commit 3858a15b42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -361,6 +361,7 @@ public class ReactExoplayerView extends FrameLayout implements
public void cleanUpResources() {
stopPlayback();
themedReactContext.removeLifecycleEventListener(this);
}
//BandwidthMeter.EventListener implementation