Skip to content

Commit 577d23e

Browse files
dsn5ftleticiarossi
authored andcommitted
[Search] Fix expand/collapse animation for non-predictive back cases where rootView bounds are not equal to searchView bounds
PiperOrigin-RevId: 530596832
1 parent e157608 commit 577d23e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ private Animator getRootViewAnimator(boolean show) {
339339
Rect toClipBounds =
340340
initialHideToClipBounds != null
341341
? initialHideToClipBounds
342-
: ViewUtils.calculateRectFromBounds(rootView);
342+
: ViewUtils.calculateRectFromBounds(searchView);
343343
Rect fromClipBounds =
344344
initialHideFromClipBounds != null
345345
? initialHideFromClipBounds

0 commit comments

Comments
 (0)