File tree Expand file tree Collapse file tree
sentry-compose/src/androidMain/kotlin/io/sentry/compose Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,13 +55,11 @@ public object SentryModifier {
5555 }
5656
5757 // SemanticsModifierNode.isImportantForBounds() was added as an abstract method in
58- // compose-ui 1.11. Classes compiled against earlier versions lack this method in
58+ // compose-ui 1.11. Classes compiled against earlier versions lack this method in
5959 // their bytecode, which causes AbstractMethodError when the accessibility tree is
60- // traversed on 1.11+ runtimes. We can't use the `override` keyword here because
61- // the method doesn't exist in the compile-time dependency (compose-ui 1.6.x), but
62- // the JVM satisfies the abstract-method requirement at runtime via signature
63- // matching. SentryTagModifierNode only stores a semantic tag and has no visual
64- // effect on layout, so it is not important for bounds.
65- @Suppress(" unused" ) fun isImportantForBounds (): Boolean = false
60+ // traversed on 1.11+ runtimes.
61+ // Returning true to match the default behavior
62+ // https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/node/SemanticsModifierNode.kt;l=69-83;drc=bd7809b4bc9205721c2f1bc681694dd348885849
63+ @Suppress(" unused" ) fun isImportantForBounds (): Boolean = true
6664 }
6765}
You can’t perform that action at this time.
0 commit comments