Skip to content

WaEnhancer Community 0.0.11

Choose a tag to compare

@github-actions github-actions released this 09 Oct 15:30
63d3099

WaEnhancer Community 0.0.11

SHA-256: 29495afb5216da7ffc141a8472576f38af8f3c7d8f3f0c83a53a9f34fee2d058

Changes since v0.0.10.

What's changed

  • #79 fix(glass): stop the home list oscillation and the header fallback flashes

Full changelog

This section compiles the descriptions of the pull requests included in this release.

#79 — fix(glass): stop the home list oscillation and the header fallback flashes

Merged by contribution from @igorcv88.

Problem

On a device running #78, the user reported, with a screen recording and home2.txt:

  • The home screen is sluggish.
  • Chat rows stick to the top as if pulled by a magnet, and break again after opening and leaving a chat.
  • The header capsule keeps alternating between live glass and the semi-transparent fallback.

Causes (from the log)

  • List oscillation. The dump caught WDSList ltrb=0,348 margin=-348 pad=348, a state where the margin is applied but the list hasn't been laid out again yet. HomeGlassChrome computed the list's rest position from getTop() + shift. A scan() that ran before the relayout read the stale top and doubled the shift, then the next layout halved it. The result was a relayout on every pass, rows jumping, and keepAtTop pulling the list back to the top each time.
  • Header fallback flashes. The home toolbar was re-bound 16 times, each going BOUND → DEGRADED → LIVE. WhatsApp replaces WDSToolbar's background on scroll and tab changes. Each replacement created a new glass drawable with no live capture yet, so the fallback showed until it captured.

Changes

  • HomeGlassChrome:
    • The rest position is now computed from the container's padding plus the measured height and margins of the siblings above the list.
    • Nothing runs while a layout is pending.
    • The scroll-to-top pin runs only on the first extension.
    • If WhatsApp changes the list's padding itself, that value becomes the new native baseline instead of being added to again (logged once).
  • AppLiquidGlass and GlassMaterialDrawable: when the native background under a bound view is replaced, the existing glass and its live capture are put back, and the new drawable becomes the one used for masking and restoring (replaceOriginal).
  • Removed HomeTreeProbe. It walked the whole view tree on every layout, and what it found is recorded in handoff.md.

Validation

  • :app:testWhatsappDebugUnitTest: 425 tests, 0 failures.
  • :app:assembleWhatsappDebug succeeds.
  • Not yet run on a device, and frame time hasn't been measured.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JN7ZPJjeqP3W2AQTAUUuvr


Generated by Claude Code