Skip to content

Commit

Permalink
[Chip] Include font padding.
Browse files Browse the repository at this point in the history
Resolves #1424

PiperOrigin-RevId: 318817230
  • Loading branch information
wcshi authored and ymarian committed Jun 29, 2020
1 parent 811d452 commit 8544f7a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion lib/java/com/google/android/material/chip/Chip.java
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ public Chip(Context context, AttributeSet attrs, int defStyleAttr) {
setText(drawable.getText());
setEllipsize(drawable.getEllipsize());

setIncludeFontPadding(false);
updateTextPaintDrawState();

// Chip text should not extend to more than 1 line.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<item name="closeIcon">@drawable/ic_mtrl_chip_close_circle</item>

<item name="android:text">@null</item>
<item name="android:includeFontPadding">false</item>
<item name="enforceMaterialTheme">true</item>
<item name="enforceTextAppearance">true</item>
<item name="android:textAppearance">?attr/textAppearanceBody2</item>
Expand Down

0 comments on commit 8544f7a

Please sign in to comment.