Skip to content

fix(android): EnrichedText ellipsizeMode regression - #828

Merged
exploIF merged 2 commits into
mainfrom
@ksienkiewicz/fix-android-enriched-text-ellipsize
Oct 26, 2026
Merged

exploIF merged 2 commits into
mainfrom
@ksienkiewicz/fix-android-enriched-text-ellipsize

Conversation

@hejsztynx

Copy link
Copy Markdown
Collaborator

Summary

lineHeight feature for the EnrichedText component #724 introduced a regression. Precisely, the ellipsizeMode stopped working and the following e2e test was failing: .maestro/enrichedText/flows/ellipsize_mode.yaml

Fix turned out to be really simple - a BufferType change when calling setText on lineHeight apply - consistent with how setText was called elsewhere.

Test Plan

Run the failing test, see it passes

yarn test:e2e:android --rebuild .maestro/enrichedText/flows/ellipsize_mode.yaml

Screenshots / Videos

Setting the EnrichedText value with a ab abc abcd abcde abcdef abcdefg abcdefgh abcdefghi

Before:

image

After:

image

Compatibility

OS Implemented
iOS ❌
Android ✅
Web ❌

Checklist

  • E2E tests are passing
  • Required E2E tests have been added (if applicable)

Copilot AI balanced review requested due to automatic review settings October 21, 2026 07:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused change matches existing behavior and has no identified blocking issues; Android E2E tests were not run.

No open issues 🎉

What changed in this PR

Fixes the Android EnrichedText ellipsizing regression introduced by line-height support in #724.

Changes:

  • Uses BufferType.NORMAL when applying line height, matching existing text-setting behavior.
File Description
android/​src/​main/​java/​com/​swmansion/​enriched/​text/​EnrichedTextView.kt Changes the text buffer type to restore ellipsizing.

Review effort: Balanced

@hejsztynx
hejsztynx requested a review from exploIF October 21, 2026 07:32

@exploIF exploIF left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 🚀

@exploIF
exploIF merged commit f5520e5 into main Oct 26, 2026
8 checks passed
@exploIF
exploIF deleted the @ksienkiewicz/fix-android-enriched-text-ellipsize branch October 26, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants