Skip to content

Commit ad1d5f2

Browse files
committed
Use ViewCompat.getPaddingEnd() instead of getPaddingEnd for backwards compatibility in Chip
PiperOrigin-RevId: 203812719
1 parent 84c6020 commit ad1d5f2

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
@@ -228,7 +228,7 @@ && isChecked())) {
228228
+ chipDrawable.getCloseIconSize();
229229
}
230230

231-
if (getPaddingEnd() != paddingEnd) {
231+
if (ViewCompat.getPaddingEnd(this) != paddingEnd) {
232232
ViewCompat.setPaddingRelative(
233233
this,
234234
ViewCompat.getPaddingStart(this),

0 commit comments

Comments
 (0)