File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/android/src/main/java/com/reactnativecommunity/slider Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -109,9 +109,12 @@ void setAccessibilityIncrements(List<String> accessibilityIncrements) {
109
109
@ Override
110
110
public void onPopulateAccessibilityEvent (AccessibilityEvent event ) {
111
111
super .onPopulateAccessibilityEvent (event );
112
- if (event .getEventType () == AccessibilityEvent .TYPE_VIEW_ACCESSIBILITY_FOCUSED ||
113
- (event .getEventType () == AccessibilityEvent .TYPE_VIEW_SELECTED && this .isAccessibilityFocused ())) {
114
- this .setupAccessibility ();
112
+
113
+ if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .LOLLIPOP ) {
114
+ if (event .getEventType () == AccessibilityEvent .TYPE_VIEW_ACCESSIBILITY_FOCUSED ||
115
+ (event .getEventType () == AccessibilityEvent .TYPE_VIEW_SELECTED && this .isAccessibilityFocused ())) {
116
+ this .setupAccessibility ();
117
+ }
115
118
}
116
119
}
117
120
You can’t perform that action at this time.
0 commit comments