Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix dismiss() causing crash when dialog is detached.
Summary: If dismiss is called (especially on the spinner) after the dialog has been detached from the window, it could cause the whole app to crash. This alleviates that situation. App developers should still call dismiss() on the dialog during onPause() since this does not address the leaking window issue, but if they don't, this at least won't crash their app. Test Plan: Tested various situations where rotation happens (during a webview load, and after posting an update). Reviewers: mmarucheck, clang Reviewed By: mmarucheck Differential Revision: https://phabricator.fb.com/D643794 Task ID: 1878623
- Loading branch information