Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure alert dialog title wraps to two lines, uses default style #47095

Closed
wants to merge 1 commit into from

Conversation

Abbondanzo
Copy link
Contributor

@Abbondanzo Abbondanzo commented Oct 17, 2024

Summary:
The internal DialogTitle implementation from Android makes additional checks to see if the title should wrap to two lines before applying ellipsis, so this change recreates those same checks. This change also removes the text appearance and size changes made to the layout.

Reverts some of the changes made to #45395.

Changelog:
[Android][Fixed] - Fixed styling on alert dialog titles to wrap two lines and retain bold appearance

Before After
image image

Differential Revision: D64543105

Summary:
The [internal `DialogTitle` implementation from Android](https://cs.android.com/android/platform/superproject/main/+/main:frameworks/base/core/java/com/android/internal/widget/DialogTitle.java;l=63?q=DialogTitle) makes additional checks to see if the title should wrap to two lines before applying ellipsis, so this change recreates those same checks. This change also removes the text appearance and size changes made to the layout.

Reverts some of the changes made to facebook#45395.

**Changelog:**
[Android][Fixed] - Fixed styling on alert dialog titles to wrap two lines and retain bold appearance

Differential Revision: D64543105
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64543105

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported p: Facebook Partner: Facebook Partner labels Oct 17, 2024
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Oct 17, 2024
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in c54b23f.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @Abbondanzo in c54b23f

When will my fix make it into a release? | How to file a pick request?

@Abbondanzo Abbondanzo deleted the export-D64543105 branch October 20, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants