From e3f3a5615a5eacffa7bca279db23b36127949daa Mon Sep 17 00:00:00 2001 From: David Vacca <515103+mdvacca@users.noreply.github.com> Date: Wed, 27 Sep 2023 07:27:11 -0700 Subject: [PATCH] Remove support for Android API < 23 in ReactTextAnchorViewManager (#39676) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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 --- .../react/views/text/ReactTextAnchorViewManager.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java index f683c24f74d760..867aac0d2f530b 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java @@ -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; @@ -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")) {