mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-20 08:39:55 +08:00
Use getText() in ChipTouchHelper for consistency
PiperOrigin-RevId: 204138629
This commit is contained in:
parent
602a9b63a4
commit
8624748ed8
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user