mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Followup to D24379607, update minsdk
Summary: Followup to D24379607 (https://github.com/facebook/react-native/commit/a17ff44adcf003dd4e4ef2301e1f80b77913f712), update target SDK scattered throughout code Changelog: [Internal] Reviewed By: ejanzer Differential Revision: D24510634 fbshipit-source-id: 356e172027e48db498253dcb15373007f42db292
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d527e03842
commit
81c184dce1
+1
-1
@@ -33,7 +33,7 @@ public class UpdateLayoutMountItem implements MountItem {
|
||||
}
|
||||
|
||||
// TODO move this from here
|
||||
@TargetApi(Build.VERSION_CODES.KITKAT)
|
||||
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
|
||||
private static int convertLayoutDirection(int layoutDirection) {
|
||||
switch (layoutDirection) {
|
||||
case 0:
|
||||
|
||||
+4
-4
@@ -36,7 +36,7 @@ public class AccessibilityInfoModule extends NativeAccessibilityInfoSpec
|
||||
|
||||
public static final String NAME = "AccessibilityInfo";
|
||||
|
||||
@TargetApi(Build.VERSION_CODES.KITKAT)
|
||||
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
|
||||
private class ReactTouchExplorationStateChangeListener
|
||||
implements AccessibilityManager.TouchExplorationStateChangeListener {
|
||||
|
||||
@@ -87,7 +87,7 @@ public class AccessibilityInfoModule extends NativeAccessibilityInfoSpec
|
||||
return "AccessibilityInfo";
|
||||
}
|
||||
|
||||
@TargetApi(Build.VERSION_CODES.KITKAT)
|
||||
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
|
||||
private boolean getIsReduceMotionEnabledValue() {
|
||||
String value =
|
||||
Settings.Global.getString(mContentResolver, Settings.Global.TRANSITION_ANIMATION_SCALE);
|
||||
@@ -134,7 +134,7 @@ public class AccessibilityInfoModule extends NativeAccessibilityInfoSpec
|
||||
}
|
||||
|
||||
@Override
|
||||
@TargetApi(Build.VERSION_CODES.KITKAT)
|
||||
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
|
||||
public void onHostResume() {
|
||||
mAccessibilityManager.addTouchExplorationStateChangeListener(
|
||||
mTouchExplorationStateChangeListener);
|
||||
@@ -147,7 +147,7 @@ public class AccessibilityInfoModule extends NativeAccessibilityInfoSpec
|
||||
}
|
||||
|
||||
@Override
|
||||
@TargetApi(Build.VERSION_CODES.KITKAT)
|
||||
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
|
||||
public void onHostPause() {
|
||||
mAccessibilityManager.removeTouchExplorationStateChangeListener(
|
||||
mTouchExplorationStateChangeListener);
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
|
||||
package com.facebook.react.views.view;
|
||||
|
||||
import static android.os.Build.VERSION_CODES.KITKAT;
|
||||
import static android.os.Build.VERSION_CODES.LOLLIPOP;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.content.Context;
|
||||
@@ -1235,7 +1235,7 @@ public class ReactViewBackgroundDrawable extends Drawable {
|
||||
return ReactViewBackgroundDrawable.colorFromAlphaAndRGBComponents(alpha, rgb);
|
||||
}
|
||||
|
||||
@TargetApi(KITKAT)
|
||||
@TargetApi(LOLLIPOP)
|
||||
public RectF getDirectionAwareBorderInsets() {
|
||||
final float borderWidth = getBorderWidthOrDefaultTo(0, Spacing.ALL);
|
||||
final float borderTopWidth = getBorderWidthOrDefaultTo(borderWidth, Spacing.TOP);
|
||||
|
||||
@@ -54,7 +54,7 @@ import com.facebook.yoga.YogaConstants;
|
||||
* Backing for a React View. Has support for borders, but since borders aren't common, lazy
|
||||
* initializes most of the storage needed for them.
|
||||
*/
|
||||
@TargetApi(Build.VERSION_CODES.KITKAT)
|
||||
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
|
||||
public class ReactViewGroup extends ViewGroup
|
||||
implements ReactInterceptingViewGroup,
|
||||
ReactClippingViewGroup,
|
||||
|
||||
Reference in New Issue
Block a user