File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
ReactAndroid/src/main/java/com/facebook/react/views/text Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1919import android .text .StaticLayout ;
2020import android .text .TextPaint ;
2121import android .util .LayoutDirection ;
22- import android .util .Log ;
2322import android .util .LruCache ;
2423import android .view .View ;
2524import androidx .annotation .NonNull ;
@@ -126,11 +125,12 @@ private static void buildSpannableFromFragment(
126125 new TextInlineViewPlaceholderSpan (reactTag , (int ) width , (int ) height )));
127126 } else if (end >= start ) {
128127 if (textAttributes .mIsAccessibilityLink ) {
129- /*
128+ ops .add (new SetSpanOperation (start , end , new ReactClickableSpan (reactTag )));
129+ }
130+ if (textAttributes .mAccessibilityUnit != null && Build .VERSION .SDK_INT >= 21 ) {
130131 ops .add (
131132 new SetSpanOperation (
132- start, end, new ReactTtsSpan.Builder(ReactTtsSpan.TYPE_VERBATIM).build()));
133- */
133+ start , end , new ReactTtsSpan .Builder (textAttributes .mAccessibilityUnit ).build ()));
134134 }
135135 if (textAttributes .mIsColorSet ) {
136136 ops .add (
You can’t perform that action at this time.
0 commit comments