From 28e9c3b87e709dce3ffec208ff5228d07eaad512 Mon Sep 17 00:00:00 2001 From: fabriziobertoglio1987 Date: Wed, 17 Aug 2022 19:28:38 +0800 Subject: [PATCH] remove default expand/collapse action, the state is managed with javascript callback onAccessibilityAction --- .../facebook/react/uimanager/ReactAccessibilityDelegate.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java index 28aa5cc05114da..4f6bc47bf0f5ea 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java @@ -67,8 +67,6 @@ public class ReactAccessibilityDelegate extends ExploreByTouchHelper { sActionIdMap.put("longpress", AccessibilityActionCompat.ACTION_LONG_CLICK.getId()); sActionIdMap.put("increment", AccessibilityActionCompat.ACTION_SCROLL_FORWARD.getId()); sActionIdMap.put("decrement", AccessibilityActionCompat.ACTION_SCROLL_BACKWARD.getId()); - sActionIdMap.put("expand", AccessibilityNodeInfoCompat.ACTION_EXPAND); - sActionIdMap.put("collapse", AccessibilityNodeInfoCompat.ACTION_COLLAPSE); } private final View mView;