Skip to content

Commit eb0b424

Browse files
committed
update PR based on facebook#35949
1 parent c4d82d3 commit eb0b424

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

ReactAndroid/src/main/java/com/facebook/react/views/text/CustomStyleSpan.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
@Nullsafe(Nullsafe.Mode.LOCAL)
1818
public class CustomStyleSpan extends MetricAffectingSpan implements ReactSpan {
1919

20-
private static final String TAG = "CustomStyleSpan";
2120
/**
2221
* A {@link MetricAffectingSpan} that allows to change the style of the displayed font.
2322
* CustomStyleSpan will try to load the fontFamily with the right style and weight from the
@@ -58,9 +57,9 @@ public CustomStyleSpan(
5857
int fontWeight,
5958
@Nullable String fontFeatureSettings,
6059
@Nullable String fontFamily,
60+
AssetManager assetManager,
6161
TextAlignVertical textAlignVertical,
62-
int textSize,
63-
AssetManager assetManager) {
62+
int textSize) {
6463
this(fontStyle, fontWeight, fontFeatureSettings, fontFamily, assetManager);
6564
mTextAlignVertical = textAlignVertical;
6665
mSize = textSize;

ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ private static void buildSpannableFromFragment(
181181
textAttributes.mFontWeight,
182182
textAttributes.mFontFeatureSettings,
183183
textAttributes.mFontFamily,
184+
context.getAssets(),
184185
textAlignVertical,
185-
textAttributes.mFontSize,
186-
context.getAssets())));
186+
textAttributes.mFontSize)));
187187
}
188188
if (textAttributes.mIsUnderlineTextDecorationSet) {
189189
ops.add(new SetSpanOperation(start, end, new ReactUnderlineSpan()));

0 commit comments

Comments
 (0)