You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewAccessibilityDelegate.kt
+29-15Lines changed: 29 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -290,22 +290,25 @@ internal class ReactTextViewAccessibilityDelegate(
290
290
init {
291
291
val accessibleLinks = mutableListOf<AccessibleLink>()
292
292
val spans = text.getSpans(0, text.length, ClickableSpan::class.java)
293
-
spans.sortBy { text.getSpanStart(it) }
294
-
for (i in spans.indices) {
295
-
val span = spans[i]
296
-
val start = text.getSpanStart(span)
297
-
val end = text.getSpanEnd(span)
298
-
// zero length spans, and out of range spans should not be included.
299
-
if (start == end || start <0|| end <0|| start > text.length || end > text.length) {
0 commit comments