Use getText() in ChipTouchHelper for consistency

PiperOrigin-RevId: 204138629
This commit is contained in:
Material Design Team 2018-07-11 12:37:35 -04:00 committed by cketcham
parent 602a9b63a4
commit 8624748ed8

View File

@ -1002,7 +1002,7 @@ public class Chip extends AppCompatCheckBox implements Delegate {
protected void onPopulateNodeForHost(AccessibilityNodeInfoCompat node) {
node.setCheckable(chipDrawable != null && chipDrawable.isCheckable());
node.setClassName(Chip.class.getName());
CharSequence chipText = chipDrawable != null ? chipDrawable.getText() : "";
CharSequence chipText = getText();
if (VERSION.SDK_INT >= VERSION_CODES.M) {
node.setText(chipText);
} else {