OSDN Git Service

Activity Transition: fix quick back after enter.
authorGeorge Mount <mount@google.com>
Mon, 26 Jan 2015 22:38:19 +0000 (14:38 -0800)
committerGeorge Mount <mount@google.com>
Mon, 26 Jan 2015 23:59:42 +0000 (15:59 -0800)
commitfbd459642fe732115f135e456eafdec2dc8e9bb6
tree32a7dfe11c049b820fd4ca86a2c4a6cf29c3cd93
parentd57adbbc4f2f8ccd8fc4a4de0508a8243ace3866
Activity Transition: fix quick back after enter.

Bug 19105460

When an Activity Transition was receiving an exit call
immediately after the enter, the transition for the enter
was still in progress. TransitionManager does not allow
multiple transitions to work at once, so the enter transition
would run, but the exit did not. This CL detects when the
enter transition is still pending and tells the
ActivityTransitionState to delay one frame so that the
enter can finish its required work prior to starting the
exit transition.

Change-Id: I1b40f1e41d61a67da3fd672419ea321e7d0496da
core/java/android/app/ActivityTransitionCoordinator.java
core/java/android/app/ActivityTransitionState.java
core/java/android/app/EnterTransitionCoordinator.java