Skip to content

Commit a5ff190

Browse files
pubiqqleticiarossi
authored andcommittedSep 7, 2023
[BottomSheet] Fix sheet corners animation
Resolves #3541 Resolves #3540 GIT_ORIGIN_REV_ID=747db4e9eeed0b14ea1f949862176346afc4944a PiperOrigin-RevId: 560143863 (cherry picked from commit de27132)
1 parent dfd9bfb commit a5ff190

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/java/com/google/android/material/bottomsheet/BottomSheetBehavior.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1443,8 +1443,8 @@ private void updateDrawableForTargetState(@State int state, boolean animate) {
14431443
if (interpolatorAnimator.isRunning()) {
14441444
interpolatorAnimator.reverse();
14451445
} else {
1446+
float from = materialShapeDrawable.getInterpolation();
14461447
float to = removeCorners ? calculateInterpolationWithCornersRemoved() : 1f;
1447-
float from = 1f - to;
14481448
interpolatorAnimator.setFloatValues(from, to);
14491449
interpolatorAnimator.start();
14501450
}

0 commit comments

Comments
 (0)
Please sign in to comment.