Skip to content

Commit 7656db9

Browse files
afohrmangsajith
authored andcommitted
Update TabLayout and MaterialButtonHelper documentation for LayerDrawable workaround.
PiperOrigin-RevId: 219127481
1 parent 14460ac commit 7656db9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/java/com/google/android/material/button/MaterialButtonHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
@RestrictTo(LIBRARY_GROUP)
5050
class MaterialButtonHelper {
5151

52-
// This is a hacky workaround. Currently on certain devices/versions,
52+
// This is a workaround. Currently on certain devices/versions,
5353
// LayerDrawable will draw a black background underneath any layer with a non-opaque color,
5454
// unless we set the shape to be something that's not a perfect rectangle.
5555
private static final float CORNER_RADIUS_ADJUSTMENT = 0.00001F;

lib/java/com/google/android/material/tabs/TabLayout.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2031,7 +2031,7 @@ private void updateBackgroundDrawable(Context context) {
20312031

20322032
if (tabRippleColorStateList != null) {
20332033
GradientDrawable maskDrawable = new GradientDrawable();
2034-
// TODO: Find a non-hacky workaround for this. Currently on certain devices/versions,
2034+
// TODO: Find a workaround for this. Currently on certain devices/versions,
20352035
// LayerDrawable will draw a black background underneath any layer with a non-opaque color,
20362036
// (e.g. ripple) unless we set the shape to be something that's not a perfect rectangle.
20372037
maskDrawable.setCornerRadius(0.00001F);

0 commit comments

Comments
 (0)