Skip to content

Commit 8624748

Browse files
Material Design Teamcketcham
authored andcommitted
Use getText() in ChipTouchHelper for consistency
PiperOrigin-RevId: 204138629
1 parent 602a9b6 commit 8624748

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ protected void onPopulateNodeForVirtualView(
10021002
protected void onPopulateNodeForHost(AccessibilityNodeInfoCompat node) {
10031003
node.setCheckable(chipDrawable != null && chipDrawable.isCheckable());
10041004
node.setClassName(Chip.class.getName());
1005-
CharSequence chipText = chipDrawable != null ? chipDrawable.getText() : "";
1005+
CharSequence chipText = getText();
10061006
if (VERSION.SDK_INT >= VERSION_CODES.M) {
10071007
node.setText(chipText);
10081008
} else {

0 commit comments

Comments
 (0)