From 167cf0f725ad00511477cbf9b12891ea1a7a5efd Mon Sep 17 00:00:00 2001 From: YangJH Date: Sat, 20 Jan 2024 00:49:31 +0900 Subject: [PATCH] fix: remove lifecycle listener after component unmount - fix issue #3488 --- .../main/java/com/brentvatne/exoplayer/ReactExoplayerView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java b/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java index fef6d2479a..5afd4f07d5 100644 --- a/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java +++ b/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java @@ -361,6 +361,7 @@ public void onHostDestroy() { public void cleanUpResources() { stopPlayback(); + themedReactContext.removeLifecycleEventListener(this); } //BandwidthMeter.EventListener implementation