File tree 1 file changed +8
-8
lines changed
ReactAndroid/src/main/java/com/facebook/react/views/text
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,14 @@ private static void buildSpannedFromShadowNode(
119
119
new SetSpanOperation (
120
120
start , end , new BackgroundColorSpan (textShadowNode .mBackgroundColor )));
121
121
}
122
+ if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .LOLLIPOP ) {
123
+ if (textShadowNode .mLetterSpacing != Float .NaN ) {
124
+ ops .add (new SetSpanOperation (
125
+ start ,
126
+ end ,
127
+ new CustomLetterSpacingSpan (textShadowNode .mLetterSpacing )));
128
+ }
129
+ }
122
130
if (textShadowNode .mFontSize != UNSET ) {
123
131
ops .add (new SetSpanOperation (start , end , new AbsoluteSizeSpan (textShadowNode .mFontSize )));
124
132
}
@@ -157,14 +165,6 @@ private static void buildSpannedFromShadowNode(
157
165
new SetSpanOperation (
158
166
start , end , new CustomLineHeightSpan (textShadowNode .getEffectiveLineHeight ())));
159
167
}
160
- if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .LOLLIPOP ) {
161
- if (textShadowNode .mLetterSpacing != Float .NaN ) {
162
- ops .add (new SetSpanOperation (
163
- start ,
164
- end ,
165
- new CustomLetterSpacingSpan (textShadowNode .mLetterSpacing )));
166
- }
167
- }
168
168
ops .add (new SetSpanOperation (start , end , new ReactTagSpan (textShadowNode .getReactTag ())));
169
169
}
170
170
}
You can’t perform that action at this time.
0 commit comments