SIGN IN SIGN UP

fix(compose): add isImportantForBounds() to SentryTagModifierNode for compose-ui 1.11+ (#5672)

* fix(compose): add isImportantForBounds() to SentryTagModifierNode for compose-ui 1.11+

compose-ui 1.11 added SemanticsModifierNode.isImportantForBounds() as an
abstract method. SentryTagModifierNode was compiled against compose-ui 1.6.x,
where the method does not exist, so its bytecode lacks an implementation.
When an accessibility client (TalkBack, UiAutomator, adb uiautomator dump)
traverses the Compose semantics tree at runtime on 1.11+, the JVM cannot find
the method and throws AbstractMethodError.

Adding fun isImportantForBounds(): Boolean = false without the override keyword
(since the method is absent from the 1.6.x compile-time dependency) places the
method in the class bytecode. The JVM satisfies the abstract method requirement
via signature matching at runtime. SentryTagModifierNode stores only a semantic
tag with no layout/visual effect, so false is the correct return value.

* fix formatting

* chore(changelog): Add Changelog entry

---------

Co-authored-by: Markus Hintersteiner <markus.hintersteiner@sentry.io>
T
tsushanth committed
30862fca3f9c52541d12e1d966e19f22ed22d402
Parent: 0980ed7
Committed by GitHub <noreply@github.com> on 7/2/2026, 8:23:22 AM