Skip to content

Commit

Permalink
[BottomAppBar] Fix issue with pre-21 FAB elevation/shadow sometimes a…
Browse files Browse the repository at this point in the history
…ppearing

resolves #3266

PiperOrigin-RevId: 513039097
  • Loading branch information
imhappi authored and paulfthomas committed Mar 1, 2023
1 parent 5689ce2 commit 2ea3df9
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -372,6 +372,9 @@ void setShadowPaddingEnabled(boolean shadowPaddingEnabled) {

void onElevationsChanged(
float elevation, float hoveredFocusedTranslationZ, float pressedTranslationZ) {
// If there is currently a state animation, we want to end the animation by jumping
// the drawable to the current state before changing the elevation.
jumpDrawableToCurrentState();
updatePadding();
updateShapeElevation(elevation);
}
Expand Down

0 comments on commit 2ea3df9

Please sign in to comment.