Skip to content

Commit 9454587

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Remove support for Android API < 23 in TextAttributeProps (#39674)
Summary: Pull Request resolved: #39674 Since minsdk version was increased to 23, we are deleting code using Android APIs < 23 for class TextAttributeProps bypass-github-export-checks changelog: [Android][Breaking] Remove support for Android API < 23 in TextAttributeProps Reviewed By: NickGerleman Differential Revision: D48545514 fbshipit-source-id: 38e5560fdb24f1807abc6f458b882d1a5d6d051c
1 parent 31e16ee commit 9454587

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,8 @@ public class TextAttributeProps {
7373
private static final int DEFAULT_TEXT_SHADOW_COLOR = 0x55000000;
7474
private static final int DEFAULT_JUSTIFICATION_MODE =
7575
(Build.VERSION.SDK_INT < Build.VERSION_CODES.O) ? 0 : Layout.JUSTIFICATION_MODE_NONE;
76-
private static final int DEFAULT_BREAK_STRATEGY =
77-
(Build.VERSION.SDK_INT < Build.VERSION_CODES.M) ? 0 : Layout.BREAK_STRATEGY_HIGH_QUALITY;
78-
private static final int DEFAULT_HYPHENATION_FREQUENCY =
79-
(Build.VERSION.SDK_INT < Build.VERSION_CODES.M) ? 0 : Layout.HYPHENATION_FREQUENCY_NONE;
76+
private static final int DEFAULT_BREAK_STRATEGY = Layout.BREAK_STRATEGY_HIGH_QUALITY;
77+
private static final int DEFAULT_HYPHENATION_FREQUENCY = Layout.HYPHENATION_FREQUENCY_NONE;
8078

8179
protected float mLineHeight = Float.NaN;
8280
protected boolean mIsColorSet = false;

0 commit comments

Comments
 (0)