You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated default browser bottom sheet texts and low priorit message text to prevent widows and improve text handling. (#6611)
Task/Issue URL:
https://app.asana.com/1/137249556945/project/1200581511062568/task/1211065154998330?focus=true
### Description
This PR enhances the text formatting in the default browser prompts by
applying the `preventWidows()` extension function to titles and
headings. This prevents single words from appearing alone on the last
line of text, improving readability and visual appearance.
Key changes:
- Added dynamic text setting for default browser bottom sheet dialog
title and subtitle
- Applied `preventWidows()` to the new tab page default browser message
heading
- Updated layout files to use tools:text instead of android:text for
preview purposes
### Steps to test this PR
Code review. See screenshots.
### UI changes
| Bottomsheet | Message |
| ------ | ----- |
|<img width="1080" height="2400" alt="Screenshot_20250819_184421"
src="https://github.com/user-attachments/assets/21887dac-6eec-486c-a74a-18412c43e2fa"
/>|<img width="1080" height="2400" alt="Screenshot_20250819_184245"
src="https://github.com/user-attachments/assets/fe44868e-f9c4-492e-9a61-56b1ee0f3d8d"
/>|
Copy file name to clipboardExpand all lines: app/src/main/java/com/duckduckgo/app/browser/defaultbrowsing/prompts/ui/DefaultBrowserBottomSheetDialog.kt
0 commit comments