Files
react-native/ReactAndroid/src/main/java/com/facebook/react
Hedger Wang 011dc8904f Unbreak master build.
Summary:public

== cause ==

The follow block is error-prone.

```
 for (ReactInstanceEventListener listener : mReactInstanceEventListeners) {
   listener.onReactContextInitialized(reactContext);
 }
```

Because calling `listener.onReactContextInitialized` may have side-effect that
removes the `listener` from `mReactInstanceEventListeners`, thus break the
iteration with exception.

I've found at least one place that has such side-effect
diffusion/FA/browse/master/java/com/facebook/fbreact/autoupdater/AutoUpdaterScheduler.java;9c09e5bbd411e093fb2ad022ee5d0ea473e9ebfe$32

The right way to fix this is to be side-effect proof.

Reviewed By: zahanm

Differential Revision: D2943494

fb-gh-sync-id: ba848ea736c5d2d0b8ef0b5a899603d734781361
shipit-source-id: ba848ea736c5d2d0b8ef0b5a899603d734781361
2016-02-17 02:29:28 -08:00
..
2016-01-22 16:20:13 +00:00
2016-02-12 08:10:33 -08:00
2016-02-15 13:34:33 -08:00
2016-01-25 06:01:46 -08:00
2016-02-03 06:41:35 -08:00
2016-02-16 16:51:39 -08:00
2016-02-16 16:51:39 -08:00
2016-01-22 16:20:13 +00:00
2016-02-12 08:10:33 -08:00