Repository navigation
WaEnhancer Community 0.0.12
WaEnhancer Community 0.0.12
SHA-256: 3dc8ea33ac77dca398846e45f3023cfd6a11060f8a338409ccba23cae5718665
Changes since v0.0.11.
What's changed
- #80 fix(glass): capture new glass backgrounds on their first frame
Full changelog
This section compiles the descriptions of the pull requests included in this release.
#80 — fix(glass): capture new glass backgrounds on their first frame
Merged by contribution from @igorcv88.
Problem
Glass applied as a background drawable (search field, menus, cards, FAB, quotes) still shows the fallback for a frame when it first appears. The conversation header and composer don't have this problem because they use GlassPane, a separate view that captures at its own size.
Root cause
A view's background drawable gets its size only when the view first draws it, and that happens after the pre-draw pass where the capture runs. So captureBehind always saw an empty size on a new drawable, returned false, and the first frame drew the fallback.
In the device logs, 24 of 27 new glass surfaces in home2.txt and 73 of 307 in home.txt logged REVALIDATING->DEGRADED reason=capture-not-ready right after BOUND.
Fix
When the drawable doesn't have a size yet, captureBehind uses the view's own size. A view's background always fills the view, so this is the same size the view's own draw sets a moment later.
Also recorded in handoff.md
- Why some surfaces flashed and others didn't. There are two glass pipelines: separate pane views (stable) and background drawables (these had two structural defects, fixed in #79 and here).
- Performance baseline from the device. Median frame time is 19 ms and median GPU time is 9 ms. A 120 Hz frame has 8.3 ms, so the GPU alone is over budget.
- Optimizations to measure next. A real low-resolution capture, one shared backdrop per window, and moving the home header and search to the pane model the conversation screen uses.
Validation
:app:testWhatsappDebugUnitTest: 425 tests, 0 failures.:app:assembleWhatsappDebugsucceeds.- Not yet run on a device.
🤖 Generated with Claude Code
https://claude.ai/code/session_01JN7ZPJjeqP3W2AQTAUUuvr
Generated by Claude Code