diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java index 85959c84547055..bac4fdf8a885bb 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java @@ -141,16 +141,20 @@ public void addLifecycleEventListener(final LifecycleEventListener listener) { case BEFORE_RESUME: break; case RESUMED: - runOnUiQueueThread(new Runnable() { - @Override - public void run() { - try { - listener.onHostResume(); - } catch (RuntimeException e) { - handleException(e); - } - } - }); + runOnUiQueueThread( + new Runnable() { + @Override + public void run() { + if (!mLifecycleEventListeners.contains(listener)) { + return; + } + try { + listener.onHostResume(); + } catch (RuntimeException e) { + handleException(e); + } + } + }); break; default: throw new RuntimeException("Unhandled lifecycle state.");