Skip to content

Commit

Permalink
Reduced fadeout duration
Browse files Browse the repository at this point in the history
  • Loading branch information
timusus committed Aug 14, 2019
1 parent 117c05c commit b3eba00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ internal class MediaPlayerPlayback(context: Context) : LocalPlayback(context), M
fadeAnimator?.cancel()

fadeAnimator = ValueAnimator.ofFloat(currentVolume, 0f)
fadeAnimator!!.duration = 350
fadeAnimator!!.duration = 150
fadeAnimator!!.interpolator = FadeInterpolator(1)
fadeAnimator!!.addUpdateListener { animation -> setVolume(animation.animatedValue as Float) }
fadeAnimator!!.addListener(object : AnimatorListenerAdapter() {
Expand Down

0 comments on commit b3eba00

Please sign in to comment.