Skip to content

Commit

Permalink
Remove support for Android API < 23 in ReactTextAnchorViewManager (fa…
Browse files Browse the repository at this point in the history
…cebook#39676)

Summary:
Pull Request resolved: facebook#39676

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: de1426170f3e484d83e0873bceed91aa4e96ef7b
  • Loading branch information
mdvacca committed Sep 27, 2023
1 parent f7102b2 commit e3f3a56
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 @@ -118,10 +117,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 e3f3a56

Please sign in to comment.