OSDN Git Service

Send AppTransitionFinish notification when there was no animation
authorWale Ogunwale <ogunwale@google.com>
Fri, 15 May 2015 00:43:12 +0000 (17:43 -0700)
committerWale Ogunwale <ogunwale@google.com>
Fri, 15 May 2015 00:43:12 +0000 (17:43 -0700)
commita48eadbeb6fa34f27d6db7de51d3c01972ea2ebf
tree30e26f5bdfabf7ef47dcb49d90f8260eb54edde2
parentdfdbc3a8918a698a69880816a59d9e5ca2ee185f
Send AppTransitionFinish notification when there was no animation

Activity#onEnterAnimationComplete() is the hook that we advise app
developers to use to know when they are allowed to start drawing
(so they don't collide with the window transition animation).
However, it's not invoked if the window transition has no animation
(e.g. by calling Activity#overridePendingTransition(0,0).

Bug: 20823935
Change-Id: I5b286968b0cd3351e9a9224294d0a1e7faf8c654
services/core/java/com/android/server/wm/AppTransition.java
services/core/java/com/android/server/wm/AppWindowAnimator.java
services/core/java/com/android/server/wm/WindowManagerService.java