[PR #5748] [MERGED] PM-24544: Update Segmented Control to handle large font better #32027

Closed
opened 2026-04-18 15:28:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bitwarden/android/pull/5748
Author: @david-livefront
Created: 8/19/2025
Status: Merged
Merged: 8/20/2025
Merged by: @david-livefront

Base: mainHead: PM-24544-segmented-control-font


📝 Commits (1)

  • a02fb4b PM-24544: Update Segmented Control to handle large font better

📊 Changes

2 files changed (+35 additions, -17 deletions)

View changed files

📝 ui/src/main/kotlin/com/bitwarden/ui/platform/base/util/DensityExtensions.kt (+25 -0)
📝 ui/src/main/kotlin/com/bitwarden/ui/platform/components/segment/BitwardenSegmentedButton.kt (+10 -17)

📄 Description

🎟️ Tracking

PM-24544

📔 Objective

This PR updates the BitwardenSegmentedControl to handle large font without wrapping to multiple lines.

📸 Screenshots

Before After

Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bitwarden/android/pull/5748 **Author:** [@david-livefront](https://github.com/david-livefront) **Created:** 8/19/2025 **Status:** ✅ Merged **Merged:** 8/20/2025 **Merged by:** [@david-livefront](https://github.com/david-livefront) **Base:** `main` ← **Head:** `PM-24544-segmented-control-font` --- ### 📝 Commits (1) - [`a02fb4b`](https://github.com/bitwarden/android/commit/a02fb4bc5460301337410dd5b77c4bb93b62f4b2) PM-24544: Update Segmented Control to handle large font better ### 📊 Changes **2 files changed** (+35 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `ui/src/main/kotlin/com/bitwarden/ui/platform/base/util/DensityExtensions.kt` (+25 -0) 📝 `ui/src/main/kotlin/com/bitwarden/ui/platform/components/segment/BitwardenSegmentedButton.kt` (+10 -17) </details> ### 📄 Description ## 🎟️ Tracking [PM-24544](https://bitwarden.atlassian.net/browse/PM-24544) ## 📔 Objective This PR updates the `BitwardenSegmentedControl` to handle large font without wrapping to multiple lines. ## 📸 Screenshots | Before | After | | --- | --- | | <img width="300" src="https://github.com/user-attachments/assets/642d6906-db01-4499-8baa-a938d88912fb" /> | <img width="300" src="https://github.com/user-attachments/assets/838ce7f2-d5d6-4338-a079-945e1de5cee0" /> | ## ⏰ Reminders before review - Contributor guidelines followed - All formatters and local linters executed and passed - Written new unit and / or integration tests where applicable - Protected functional changes with optionality (feature flags) - Used internationalization (i18n) for all UI strings - CI builds passed - Communicated to DevOps any deployment requirements - Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team ## 🦮 Reviewer guidelines <!-- Suggested interactions but feel free to use (or not) as you desire! --> - 👍 (`:+1:`) or similar for great changes - 📝 (`:memo:`) or ℹ️ (`:information_source:`) for notes or general info - ❓ (`:question:`) for questions - 🤔 (`:thinking:`) or 💭 (`:thought_balloon:`) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion - 🎨 (`:art:`) for suggestions / improvements - ❌ (`:x:`) or ⚠️ (`:warning:`) for more significant problems or concerns needing attention - 🌱 (`:seedling:`) or ♻️ (`:recycle:`) for future improvements or indications of technical debt - ⛏ (`:pick:`) for minor or nitpick changes [PM-24544]: https://bitwarden.atlassian.net/browse/PM-24544?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-18 15:28:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#32027