Skip to content

Commit

Permalink
[NavigationView] Update foreground boundaries of menu items when sett…
Browse files Browse the repository at this point in the history
…ing a new foreground

Resolves #2737
Resolves #2735

GIT_ORIGIN_REV_ID=8632d22d414f592378b68a8d27f7fba73edc28f9
PiperOrigin-RevId: 458198734
  • Loading branch information
pubiqq authored and hunterstich committed Jul 6, 2022
1 parent 1dc0e6b commit 4dc3d93
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -124,7 +124,6 @@ protected boolean verifyDrawable(Drawable who) {
return super.verifyDrawable(who) || (who == foreground);
}

@RequiresApi(11)
@Override
public void jumpDrawablesToCurrentState() {
super.jumpDrawablesToCurrentState();
Expand Down Expand Up @@ -157,6 +156,7 @@ public void setForeground(@Nullable Drawable drawable) {
}

foreground = drawable;
foregroundBoundsChanged = true;

if (drawable != null) {
setWillNotDraw(false);
Expand Down

0 comments on commit 4dc3d93

Please sign in to comment.