Skip to content

Commit

Permalink
Remove support for Android API < 23 in ReactTextAnchorViewManager
Browse files Browse the repository at this point in the history
Summary:
Since minsdk version was increased to 23, we are deleting code using Android APIs < 23 for class ReactTextAnchorViewManager

chnagelog: [Android][Breaking] Remove support for Android API < 23 in ReactTextAnchorViewManager

Reviewed By: NickGerleman

Differential Revision: D48545519

fbshipit-source-id: 7dfbba03cd77fc028ff1523797394a99a1b4182b
  • Loading branch information
mdvacca committed Sep 26, 2023
1 parent 34b22c0 commit f8210ae
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

package com.facebook.react.views.text;

import android.os.Build;
import android.text.Layout;
import android.text.Spannable;
import android.text.TextUtils;
Expand Down Expand Up @@ -128,10 +127,6 @@ public void setSelectionColor(ReactTextView view, @Nullable Integer color) {

@ReactProp(name = "android_hyphenationFrequency")
public void setAndroidHyphenationFrequency(ReactTextView view, @Nullable String frequency) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
FLog.w(TAG, "android_hyphenationFrequency only available since android 23");
return;
}
if (frequency == null || frequency.equals("none")) {
view.setHyphenationFrequency(Layout.HYPHENATION_FREQUENCY_NONE);
} else if (frequency.equals("full")) {
Expand Down

0 comments on commit f8210ae

Please sign in to comment.