Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Android dialog module has a race condition as result it crashes see t…
…his issue: facebook#6228. The mIsInForeground flag is set on UI thread but was used from the ReactMethod thread. I added asserts to make sure that FragmentManagerHelper wouldn't be used incorrectly. Make sure that dialogs work after this change. It will be nearly impossible to reproduce the issue manually but automatic regression tests should be able to catch this. At least our tests are crashing on some dialog scenarios from time to time. [ANDROID] [MINOR] [BUGFIX] - Race condition fix for Dialogs module.
- Loading branch information