Skip to content

Commit 803a060

Browse files
committed
[SearchView] Fix toolbar navigation button and menu item translation in default animation
Resolves #5021 PiperOrigin-RevId: 888136307
1 parent ac5a6d3 commit 803a060

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/java/com/google/android/material/search/SearchViewAnimationHelper.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,9 @@ public void setUpDummyToolbarIfNeeded() {
603603
@Override
604604
public AnimatorSet getExpandCollapseAnimatorSet(boolean show) {
605605
AnimatorSet animatorSet = new AnimatorSet();
606+
if (backProgressAnimatorSet == null) {
607+
animatorSet.playTogether(getButtonsTranslationAnimator(show));
608+
}
606609
animatorSet.playTogether(
607610
getScrimAlphaAnimator(show),
608611
getRootViewAnimator(show),

0 commit comments

Comments
 (0)