You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove support for Android API < 23 in ReactTextInputLocalData (#39670)
Summary:
Pull Request resolved: #39670
Since minsdk version was increased to 23, we are deleting code using Android APIs < 23 for class ReactTextInputLocalData
bypass-github-export-checks
changelog: [Android][Breaking] Remove support for Android API < 23 in ReactTextInputLocalData
Reviewed By: NickGerleman
Differential Revision: D48545510
fbshipit-source-id: 8601a30a58d0e74c51b7d5dc8cec9e92e65344d8
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputLocalData.java
+2-10Lines changed: 2 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,6 @@
7
7
8
8
packagecom.facebook.react.views.textinput;
9
9
10
-
importandroid.os.Build;
11
10
importandroid.text.SpannableStringBuilder;
12
11
importandroid.util.TypedValue;
13
12
importandroid.widget.EditText;
@@ -30,12 +29,7 @@ public ReactTextInputLocalData(EditText editText) {
30
29
mPlaceholder = editText.getHint();
31
30
mMinLines = editText.getMinLines();
32
31
mMaxLines = editText.getMaxLines();
33
-
34
-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
35
-
mBreakStrategy = editText.getBreakStrategy();
36
-
} else {
37
-
mBreakStrategy = 0;
38
-
}
32
+
mBreakStrategy = editText.getBreakStrategy();
39
33
}
40
34
41
35
publicvoidapply(EditTexteditText) {
@@ -45,8 +39,6 @@ public void apply(EditText editText) {
45
39
editText.setMaxLines(mMaxLines);
46
40
editText.setInputType(mInputType);
47
41
editText.setHint(mPlaceholder);
48
-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
0 commit comments