Skip to content

Commit

Permalink
[BottomSheet] Fix sheet corners animation
Browse files Browse the repository at this point in the history
Resolves #3541
Resolves #3540

GIT_ORIGIN_REV_ID=747db4e9eeed0b14ea1f949862176346afc4944a
PiperOrigin-RevId: 560143863
  • Loading branch information
pubiqq authored and imhappi committed Aug 25, 2023
1 parent 0582b1a commit de27132
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1448,8 +1448,8 @@ private void updateDrawableForTargetState(@State int state, boolean animate) {
if (interpolatorAnimator.isRunning()) {
interpolatorAnimator.reverse();
} else {
float from = materialShapeDrawable.getInterpolation();
float to = removeCorners ? calculateInterpolationWithCornersRemoved() : 1f;
float from = 1f - to;
interpolatorAnimator.setFloatValues(from, to);
interpolatorAnimator.start();
}
Expand Down

0 comments on commit de27132

Please sign in to comment.