|
10 | 10 | import android.content.Context;
|
11 | 11 | import android.os.Build;
|
12 | 12 | import android.text.Spannable;
|
| 13 | +import android.text.style.ClickableSpan; |
13 | 14 | import androidx.annotation.NonNull;
|
14 | 15 | import androidx.annotation.Nullable;
|
15 | 16 | import com.facebook.common.logging.FLog;
|
|
26 | 27 | import com.facebook.react.uimanager.StateWrapper;
|
27 | 28 | import com.facebook.react.uimanager.ThemedReactContext;
|
28 | 29 | import com.facebook.react.uimanager.annotations.ReactProp;
|
29 |
| -import com.facebook.react.views.text.internal.span.ReactClickableSpan; |
30 | 30 | import com.facebook.react.views.text.internal.span.TextInlineImageSpan;
|
31 | 31 | import com.facebook.yoga.YogaMeasureMode;
|
32 | 32 | import java.util.HashMap;
|
@@ -106,12 +106,12 @@ public void updateExtraData(ReactTextView view, Object extraData) {
|
106 | 106 |
|
107 | 107 | // If this text view contains any clickable spans, set a view tag and reset the accessibility
|
108 | 108 | // delegate so that these can be picked up by the accessibility system.
|
109 |
| - ReactClickableSpan[] clickableSpans = |
110 |
| - spannable.getSpans(0, update.getText().length(), ReactClickableSpan.class); |
| 109 | + ClickableSpan[] clickableSpans = |
| 110 | + spannable.getSpans(0, update.getText().length(), ClickableSpan.class); |
111 | 111 | view.setTag(
|
112 | 112 | R.id.accessibility_links,
|
113 | 113 | clickableSpans.length > 0
|
114 |
| - ? new ReactTextViewAccessibilityDelegate.AccessibilityLinks(clickableSpans, spannable) |
| 114 | + ? new ReactTextViewAccessibilityDelegate.AccessibilityLinks(spannable) |
115 | 115 | : null);
|
116 | 116 | ReactTextViewAccessibilityDelegate.Companion.resetDelegate(
|
117 | 117 | view, view.isFocusable(), view.getImportantForAccessibility());
|
|
0 commit comments