OSDN Git Service

Fix Fade transition interrupt.
authorGeorge Mount <mount@google.com>
Thu, 4 Feb 2016 23:24:30 +0000 (15:24 -0800)
committerGeorge Mount <mount@google.com>
Mon, 8 Feb 2016 20:22:56 +0000 (12:22 -0800)
commit3cf9fa3db0231d035142c27992818d8f7827ac3e
treecf0ead019568637d86d717effe495f53bf749114
parent3512d9eb490f0e9246c0cf559de24ce30e509093
Fix Fade transition interrupt.

Bug 26963113

When a Fade transition is interrupted and reversed, the
View started the animation from the beginning. This change
captures the previous transitionAlpha and starts the animation
from the previous alpha state.

Change-Id: I801fe9ade6af4cf8446838e231bdc71841668a18
core/java/android/transition/Fade.java
core/tests/coretests/res/layout/animator_set_squares.xml
core/tests/coretests/src/android/transition/FadeTransitionTest.java [new file with mode: 0644]