Skip to content

Commit ae961f2

Browse files
troZeewojteg1337
authored andcommitted
Fix circular dependencies animatorset (#75)
1 parent 0e90a9b commit ae961f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/main/java/com/reactnativecommunity/slider/ReactSlider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public ReactSlider(Context context, @Nullable AttributeSet attrs, int style) {
5555
private void disableStateListAnimatorIfNeeded() {
5656
// We disable the state list animator for Android 6 and 7; this is a hack to prevent T37452851
5757
// and https://github.com/facebook/react-native/issues/9979
58-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M
59-
&& Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
58+
59+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
6060
super.setStateListAnimator(null);
6161
}
6262
}

0 commit comments

Comments
 (0)