How to do something on actuall end of ValuAnimator (Kotlin)?
I have a ValueAnimator named valueAnimator
I set duration to 20000, but the code block below is executed in about 30 seconds
valueAnimator.doOnEnd {
view1.visibility = View.GONE
}
(I replaced view1.visibility = View.GONE with other expressions e. g. Log.d("test", "test") but it still executes after about 30 seconds)
(repeat count = 0)