Skip to content

Commit 1995438

Browse files
hunterstichleticiarossi
authored andcommittedMay 9, 2022
[NavigationBar][NavigationRail] Updated active indicator to use new motion system.
PiperOrigin-RevId: 447463375
1 parent a2507b8 commit 1995438

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎lib/java/com/google/android/material/navigation/NavigationBarItemView.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -360,12 +360,12 @@ public void onAnimationUpdate(ValueAnimator animation) {
360360
activeIndicatorAnimator.setInterpolator(
361361
MotionUtils.resolveThemeInterpolator(
362362
getContext(),
363-
R.attr.motionEasingStandard,
363+
R.attr.motionEasingEmphasizedInterpolator,
364364
AnimationUtils.FAST_OUT_SLOW_IN_INTERPOLATOR));
365365
activeIndicatorAnimator.setDuration(
366366
MotionUtils.resolveThemeDuration(
367367
getContext(),
368-
R.attr.motionDurationLong1,
368+
R.attr.motionDurationLong2,
369369
getResources().getInteger(R.integer.material_motion_duration_long_1)));
370370
activeIndicatorAnimator.start();
371371
}

0 commit comments

Comments
 (0)
Please sign in to comment.