Skip to content

Commit

Permalink
Remove support for Android API < 23 in TextAttributeProps (#39674)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mdvacca authored and facebook-github-bot committed Sep 29, 2023
1 parent 31e16ee commit 9454587
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,8 @@ public class TextAttributeProps {
private static final int DEFAULT_TEXT_SHADOW_COLOR = 0x55000000;
private static final int DEFAULT_JUSTIFICATION_MODE =
(Build.VERSION.SDK_INT < Build.VERSION_CODES.O) ? 0 : Layout.JUSTIFICATION_MODE_NONE;
private static final int DEFAULT_BREAK_STRATEGY =
(Build.VERSION.SDK_INT < Build.VERSION_CODES.M) ? 0 : Layout.BREAK_STRATEGY_HIGH_QUALITY;
private static final int DEFAULT_HYPHENATION_FREQUENCY =
(Build.VERSION.SDK_INT < Build.VERSION_CODES.M) ? 0 : Layout.HYPHENATION_FREQUENCY_NONE;
private static final int DEFAULT_BREAK_STRATEGY = Layout.BREAK_STRATEGY_HIGH_QUALITY;
private static final int DEFAULT_HYPHENATION_FREQUENCY = Layout.HYPHENATION_FREQUENCY_NONE;

protected float mLineHeight = Float.NaN;
protected boolean mIsColorSet = false;
Expand Down

0 comments on commit 9454587

Please sign in to comment.