Skip to content

Commit 3705f84

Browse files
wcshicketcham
authored andcommitted
Stop explicitly setting ImportantForAccessibility to be true because:
1) It's no longer necessary because Chip extends AppCompatCheckbox and TextView sets this if it's not explicitly set by the user 2) This prevents developers from indicating that a chip should not be exposed to accessibility. PiperOrigin-RevId: 204189419
1 parent e22213b commit 3705f84

File tree

1 file changed

+0
-1
lines changed
  • lib/java/com/google/android/material/chip

1 file changed

+0
-1
lines changed

lib/java/com/google/android/material/chip/Chip.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ public Chip(Context context, AttributeSet attrs, int defStyleAttr) {
174174
setChipDrawable(drawable);
175175
touchHelper = new ChipTouchHelper(this);
176176
ViewCompat.setAccessibilityDelegate(this, touchHelper);
177-
ViewCompat.setImportantForAccessibility(this, ViewCompat.IMPORTANT_FOR_ACCESSIBILITY_YES);
178177

179178
initOutlineProvider();
180179
// Set deferred values

0 commit comments

Comments
 (0)