OSDN Git Service

Allow performShowLocked when transition animation started
authorChong Zhang <chz@google.com>
Mon, 15 Aug 2016 01:47:54 +0000 (18:47 -0700)
committerChong Zhang <chz@google.com>
Mon, 15 Aug 2016 17:52:59 +0000 (17:52 +0000)
commit83caa366f40b29ae5c4fcb59f601802866d66012
treef7c69a92bdbf8da61fa94dfa270d3d1fd52558d3
parent375ac0404473a7a70606b86b3bdb29497d12c7b3
Allow performShowLocked when transition animation started

Some transitions can have no animation, in which case
isReadyForDisplayIgnoringKeyguard() will wait for VIEW visibility
to become VISIBLE. But if we have a saved surface, the transition
could have already started. This causes exiting app to be hidden,
while entering app's performShowLocked() still hold back waiting
for the relayout to visible.

If we started animating with saved surface, it should also count
as transition animation started.

b/30855380

Change-Id: I6260a323b48e57d8337267d9136f630226a48dc8
services/core/java/com/android/server/wm/WindowState.java