OSDN Git Service

Add the app back to mOpeningApps if transition is unset but ready.
authorChong Zhang <chz@google.com>
Mon, 4 Apr 2016 21:21:17 +0000 (14:21 -0700)
committerChong Zhang <chz@google.com>
Tue, 5 Apr 2016 19:36:04 +0000 (19:36 +0000)
commit81a1c176ba0b703626ad46707aae3c1c4c4c18c9
tree2c415f8071eb7f1eded460ef6401ddb2fc6e03d6
parent3942978af2314801379e807a3a913841c1f1481c
Add the app back to mOpeningApps if transition is unset but ready.

This means a rotation is started while we have a transition pending,
and startFreezingDisplayLocked() called mAppTransition.freeze() to
cancel the transition by setting it to TRANSIT_UNSET but ready
immediately. Screen unfreeze will wait for mOpeningApps to empty.
handleAppTransitionReadyLocked() will remove the app from
mOpeningApps once it's drawn, and allow screen to unfreeze.

We don't add the app to mOpeningApps if the transition is neither
set nor ready. We don't have any transtition and the app won't be
removed from mOpeningApps.

bug: 27784481
bug: 27391256
Change-Id: Id2c0759732593121769c402ae0c6edde3ebc7dc6
services/core/java/com/android/server/wm/WindowManagerService.java