Skip to content

Commit 4dc3d93

Browse files
pubiqqhunterstich
authored andcommittedJul 6, 2022
[NavigationView] Update foreground boundaries of menu items when setting a new foreground
Resolves #2737 Resolves #2735 GIT_ORIGIN_REV_ID=8632d22d414f592378b68a8d27f7fba73edc28f9 PiperOrigin-RevId: 458198734
1 parent 1dc0e6b commit 4dc3d93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/java/com/google/android/material/internal/ForegroundLinearLayout.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ protected boolean verifyDrawable(Drawable who) {
124124
return super.verifyDrawable(who) || (who == foreground);
125125
}
126126

127-
@RequiresApi(11)
128127
@Override
129128
public void jumpDrawablesToCurrentState() {
130129
super.jumpDrawablesToCurrentState();
@@ -157,6 +156,7 @@ public void setForeground(@Nullable Drawable drawable) {
157156
}
158157

159158
foreground = drawable;
159+
foregroundBoundsChanged = true;
160160

161161
if (drawable != null) {
162162
setWillNotDraw(false);

0 commit comments

Comments
 (0)
Please sign in to comment.