OSDN Git Service

Better transition interruption and TextChange fixes
authorChet Haase <chet@google.com>
Tue, 27 Aug 2013 23:06:26 +0000 (16:06 -0700)
committerChet Haase <chet@google.com>
Wed, 28 Aug 2013 23:50:13 +0000 (16:50 -0700)
commitaf78bdd615ecd5ce9d41a6160ce9f53fa269b119
tree58043ae662b4420f61f08eb319be52a0ad40a94f
parentbe6cf71dc52ce2fdecc5d432abf1b30a1c62e376
Better transition interruption and TextChange fixes

Previously, the TextChange transition didn't handle interruption/
cancellation at all, which made it problematic to use in any real
situation where a transition might get interrupted mid-animation.
Also, the way that it side-effected the text of TextView objects caused
errors in the UI when the transition was interrupted, because it would
not clean up after itself properly as new transitions queried the
current state of the UI.

Also, the prior cancellation logic for all transitions was not quite
correct; we were pausing transitions but resuming the animations, making it
tricky to write transitions that would restore state correctly.

Change-Id: I5a9f3c915e9834ec59ce1e1c3c96a88d11e4aa1b
core/java/android/view/transition/Move.java
core/java/android/view/transition/TextChange.java
core/java/android/view/transition/Transition.java
core/java/android/view/transition/TransitionManager.java
core/java/android/view/transition/Visibility.java