Skip to content

[Patch] [BugFix][Android] Fix clay emoji rendered failure and layout errors on Android.#7368

Open
lynxassistant[bot] wants to merge 3 commits into
release/4.0from
shadow/p/ci_lynx/change-1781734949-ygHaPe5j
Open

[Patch] [BugFix][Android] Fix clay emoji rendered failure and layout errors on Android.#7368
lynxassistant[bot] wants to merge 3 commits into
release/4.0from
shadow/p/ci_lynx/change-1781734949-ygHaPe5j

Conversation

@lynxassistant

@lynxassistant lynxassistant Bot commented Jun 17, 2026

Copy link
Copy Markdown

No description provided.

zhongyr and others added 3 commits June 18, 2026 02:15
…ement to renderer

- What changed
Added an onMeasure override in UIBody.UIBodyView. When shouldDrawWithDisplayList() returns true, measurement is delegating to the renderer's measure method instead of using the default View onMeasure behavior.

- Why it was needed
In fragment layer / display list render mode, letting the default View onMeasure run could override the measured dimensions set by the renderer and lead to incorrect layout or extra measure passes.

- How it was verified / impacts
This change keeps onMeasure consistent with the existing onLayout and onDraw renderer delegation paths and avoids redundant measurement work in display-list mode.

[internal]
TEST: existing Android unit tests and LynxExample verification
[end-internal]
…ement to renderer

- What changed
Added an onMeasure override in UIBody.UIBodyView. When shouldDrawWithDisplayList() returns true, measurement is delegating to the renderer's measure method instead of using the default View onMeasure behavior.

- Why it was needed
In fragment layer / display list render mode, letting the default View onMeasure run could override the measured dimensions set by the renderer and lead to incorrect layout or extra measure passes.

- How it was verified / impacts
This change keeps onMeasure consistent with the existing onLayout and onDraw renderer delegation paths and avoids redundant measurement work in display-list mode.

[internal]
TEST: existing Android unit tests and LynxExample verification
[end-internal]
…n Android.

- Rendering failure is caused by R8 obfuscating on Andoird and this patch
  replace those relection calls through lynx_clay module.
- Layout error is because clay tttext did not handle `kMiddle` alignment cases.

AutoLand: release/3.8, release/3.9, release/4.0

issue: m-7336713635
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant