-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid throwing exceptions when the host activity is not FragmentActiv…
…ity (#27425) Summary: There are some code in native modules which currently throws exception when the host activity is not a FragmentActivity, even if the native module is not used. This change avoids the throw and fail the promise instead. ## Changelog There are some code in native modules which currently throws exception when the host activity is not a FragmentActivity, even if the native module is not used. This change avoids the throw and fail the promise instead. [CATEGORY] [TYPE] - Message Pull Request resolved: #27425 Test Plan: We've tested the change on MS Office applications, which currently don't use FragmentActivity. Differential Revision: D18873012 Pulled By: mdvacca fbshipit-source-id: 1b7c9efba5a59b2051487510da9ef7e1232877a5
- Loading branch information
1 parent
3aba90b
commit 7cfabf4
Showing
3 changed files
with
16 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters