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:33:49 +0000 (20:33 +0000)
commit5affef077316e73337eb42a098a126b01d20568e
tree8c936e29aa7ccd7531a4566ce00ca269d0b3da5d
parent95728a5db6595e473acf8f428f238afc2fdbbe80
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
(cherry picked from commit 3cf9fa3db0231d035142c27992818d8f7827ac3e)
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]