Skip to content

Commit 32a28f5

Browse files
Material Design Teamgsajith
authored andcommitted
Annotate arg MaterialButton.setIcon(@nullable)
PiperOrigin-RevId: 245728195
1 parent 0e9513a commit 32a28f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ public int getIconSize() {
541541
* @see #setIconResource(int)
542542
* @see #getIcon()
543543
*/
544-
public void setIcon(Drawable icon) {
544+
public void setIcon(@Nullable Drawable icon) {
545545
if (this.icon != icon) {
546546
this.icon = icon;
547547
updateIcon();

0 commit comments

Comments
 (0)