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) {
109109 @ Override
110110 public void onPopulateAccessibilityEvent (AccessibilityEvent event ) {
111111 super .onPopulateAccessibilityEvent (event );
112- if (event .getEventType () == AccessibilityEvent .TYPE_VIEW_ACCESSIBILITY_FOCUSED ||
113- (event .getEventType () == AccessibilityEvent .TYPE_VIEW_SELECTED && this .isAccessibilityFocused ())) {
114- this .setupAccessibility ((int ) mValue );
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 ((int )mValue );
117+ }
115118 }
116119 }
117120
You can’t perform that action at this time.
0 commit comments