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

(cherry picked from commit de27132)
  • Loading branch information
pubiqq authored and leticiarossi committed Sep 7, 2023
1 parent dfd9bfb commit a5ff190
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1443,8 +1443,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 a5ff190

Please sign in to comment.