mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Default accessibility hint is read for buttons
Summary: [Android] [Fixed] - Make sure the default accessibility hint is read for buttons on Android. Reviewed By: PeteTheHeat Differential Revision: D16974987 fbshipit-source-id: e7b932041f82d41271d9393e651967789c05f38a
This commit is contained in:
committed by
Facebook Github Bot
parent
3b3c95b017
commit
f8dff0bcb3
+3
@@ -290,6 +290,9 @@ public class ReactAccessibilityDelegate extends AccessibilityDelegateCompat {
|
||||
} else if (role.equals(AccessibilityRole.IMAGEBUTTON)) {
|
||||
nodeInfo.setRoleDescription(context.getString(R.string.imagebutton_description));
|
||||
nodeInfo.setClickable(true);
|
||||
} else if (role.equals(AccessibilityRole.BUTTON)) {
|
||||
nodeInfo.setRoleDescription(context.getString(R.string.button_description));
|
||||
nodeInfo.setClickable(true);
|
||||
} else if (role.equals(AccessibilityRole.SUMMARY)) {
|
||||
nodeInfo.setRoleDescription(context.getString(R.string.summary_description));
|
||||
} else if (role.equals(AccessibilityRole.HEADER)) {
|
||||
|
||||
Reference in New Issue
Block a user