Linking swipe animate to stateTransition to that it gets properly reset afterwards
Bug: 77848165 Change-Id: Ie4ae2fe933b37b66568c0a8eb29c85b9869a9987
This commit is contained in:
@@ -213,9 +213,8 @@ public interface ActivityControlHelper<T extends BaseDraggingActivity> {
|
|||||||
anim.play(shiftAnim);
|
anim.play(shiftAnim);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Link this animation to state animation, so that it is cancelled
|
|
||||||
// automatically on state change
|
|
||||||
anim.setDuration(transitionLength * 2);
|
anim.setDuration(transitionLength * 2);
|
||||||
|
activity.getStateManager().setCurrentAnimation(anim);
|
||||||
return AnimatorPlaybackController.wrap(anim, transitionLength * 2);
|
return AnimatorPlaybackController.wrap(anim, transitionLength * 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user