bluelinelabs / Conductor

A small, yet full-featured framework that allows building View-based Android applications
Apache License 2.0
3.9k stars 345 forks source link

How to reverse transition animation, rather than canceling it, on back press during transition? #549

Open ursusursus opened 5 years ago

ursusursus commented 5 years ago

Hi, I found this annoying behaviour, where if you press back during transition, the push animation gets canceled, rather then reversed.

For Activities behaviour is that if you press back during animation it will be reversed from the current position in the animation.

In conductor this is not possible because if you press back during transition, AnimatorChangeHandler.getAnimator from: View? is null, hence you cannot create a animator from current values backwards.

ursusursus commented 5 years ago

bump