Skip to content

Commit de27132

Browse files
pubiqqimhappi
authored andcommittedAug 25, 2023
[BottomSheet] Fix sheet corners animation
Resolves #3541 Resolves #3540 GIT_ORIGIN_REV_ID=747db4e9eeed0b14ea1f949862176346afc4944a PiperOrigin-RevId: 560143863
1 parent 0582b1a commit de27132

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
@@ -1448,8 +1448,8 @@ private void updateDrawableForTargetState(@State int state, boolean animate) {
14481448
if (interpolatorAnimator.isRunning()) {
14491449
interpolatorAnimator.reverse();
14501450
} else {
1451+
float from = materialShapeDrawable.getInterpolation();
14511452
float to = removeCorners ? calculateInterpolationWithCornersRemoved() : 1f;
1452-
float from = 1f - to;
14531453
interpolatorAnimator.setFloatValues(from, to);
14541454
interpolatorAnimator.start();
14551455
}

0 commit comments

Comments
 (0)
Please sign in to comment.