diff --git a/lib/java/com/google/android/material/bottomnavigation/BottomNavigationItemView.java b/lib/java/com/google/android/material/bottomnavigation/BottomNavigationItemView.java index 061695be8..cf3f9e076 100644 --- a/lib/java/com/google/android/material/bottomnavigation/BottomNavigationItemView.java +++ b/lib/java/com/google/android/material/bottomnavigation/BottomNavigationItemView.java @@ -340,6 +340,9 @@ public class BottomNavigationItemView extends FrameLayout implements MenuView.It } public void setItemBackground(@Nullable Drawable background) { + if (background != null && background.getConstantState() != null) { + background = background.getConstantState().newDrawable().mutate(); + } ViewCompat.setBackground(this, background); } }