OSDN Git Service

Fixes for restoring more than one child surfaces
authorChong Zhang <chz@google.com>
Mon, 9 May 2016 19:47:11 +0000 (12:47 -0700)
committerChong Zhang <chz@google.com>
Tue, 10 May 2016 20:10:40 +0000 (13:10 -0700)
commit9214704eac0af4b0d138a195bcea6fecef523ea5
tree29b63b2624924003bbb230d412398fbf1d117681
parent6795f0ba198170c5cc044e04be65dd1171d5f7a5
Fixes for restoring more than one child surfaces

App may have more than one windows and subwindows. Remember which ones
are visible at the last setAppVisibility time, and restore only those
that was visible then. If the app itself requested to hide a window
before that, we don't want to use the window for early animation.

Also move mAnimatingWithSavedSurface into WindowState as it needs to
be tracked per window.

bug: 27455025
bug: 28296945

Change-Id: I3ed1879634fa7709de699d4518d8fcfc91a85554
services/core/java/com/android/server/wm/AppWindowAnimator.java
services/core/java/com/android/server/wm/AppWindowToken.java
services/core/java/com/android/server/wm/WindowManagerService.java
services/core/java/com/android/server/wm/WindowState.java
services/core/java/com/android/server/wm/WindowStateAnimator.java