@@ -99,7 +99,9 @@ void configure(MaterialContainerTransform transform, boolean entering) {
99
99
if (duration != NO_DURATION ) {
100
100
transform .setDuration (duration );
101
101
}
102
- transform .setInterpolator (getInterpolator ());
102
+ if (getInterpolator () != null ) {
103
+ transform .setInterpolator (getInterpolator ());
104
+ }
103
105
if (isArcMotionEnabled ()) {
104
106
transform .setPathMotion (new MaterialArcMotion ());
105
107
}
@@ -116,7 +118,9 @@ void configure(
116
118
if (duration != NO_DURATION ) {
117
119
transform .setDuration (duration );
118
120
}
119
- transform .setInterpolator (getInterpolator ());
121
+ if (getInterpolator () != null ) {
122
+ transform .setInterpolator (getInterpolator ());
123
+ }
120
124
if (isArcMotionEnabled ()) {
121
125
transform .setPathMotion (
122
126
new com .google .android .material .transition .platform .MaterialArcMotion ());
@@ -302,6 +306,8 @@ private void setUpBottomSheetInterpolation(View view) {
302
306
setTextFloat (view .findViewById (R .id .y1_edit_text ), currentInterp .controlY1 );
303
307
setTextFloat (view .findViewById (R .id .x2_edit_text ), currentInterp .controlX2 );
304
308
setTextFloat (view .findViewById (R .id .y2_edit_text ), currentInterp .controlY2 );
309
+ } else {
310
+ interpolationGroup .check (R .id .radio_default );
305
311
}
306
312
307
313
// Show/hide custom text input fields depending on initial checked radio button.
@@ -452,9 +458,12 @@ private void setUpBottomSheetConfirmationButtons(View view, BottomSheetDialog di
452
458
} else if (checkedRadioButtonId == R .id .radio_bounce ) {
453
459
interpolator = new BounceInterpolator ();
454
460
dialog .dismiss ();
455
- } else {
461
+ } else if ( checkedRadioButtonId == R . id . radio_fast_out_slow_in ) {
456
462
interpolator = new FastOutSlowInInterpolator ();
457
463
dialog .dismiss ();
464
+ } else {
465
+ interpolator = null ;
466
+ dialog .dismiss ();
458
467
}
459
468
});
460
469
0 commit comments