forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide fallback for new AlertDialog
Summary: In D57019423, the `AlertFragment` started using the `AlertDialog` from androidx. This could potentially trigger an `IllegalStateException` if an alert is displayed from an activity that does not have theming from AppCompat. This diff provides a fallback to the original `android.app.AlertDialog` if the current activity is not an AppCompat descendant. In addition, it modifies the test case to ensure that the alert dialog still displays and can be dismissed Differential Revision: D57113950
- Loading branch information
1 parent
5e3652a
commit bd26c31
Showing
2 changed files
with
92 additions
and
22 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