Skip to content

Commit a73ac92

Browse files
wcshidsn5ft
authored andcommitted
Remove attrs check inside Chip#initMinTarget because the current context's theme may have custom values.
PiperOrigin-RevId: 281519201 (cherry picked from commit 39e62ec)
1 parent 33321d5 commit a73ac92

File tree

1 file changed

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

1 file changed

+0
-3
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,6 @@ private void updateAccessibilityDelegate() {
288288
}
289289

290290
private void initMinTouchTarget(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
291-
if (attrs == null) {
292-
return;
293-
}
294291
// Checks if the Chip should meet Android's minimum touch target size.
295292
TypedArray a =
296293
ThemeEnforcement.obtainStyledAttributes(

0 commit comments

Comments
 (0)