OSDN Git Service

Avoid extra relaunch when rotating side-by-side apps
authorChong Zhang <chz@google.com>
Thu, 31 Mar 2016 16:44:34 +0000 (09:44 -0700)
committerChong Zhang <chz@google.com>
Fri, 1 Apr 2016 20:58:41 +0000 (13:58 -0700)
commit167bbfac24b1e78576b18c0522218838dfdf57bb
tree88db80bf5d8a5dac8b3748a1c0b9a2d2d43954f0
parentc2a091a04b36f0bac027d899d5a85200c757eb1f
Avoid extra relaunch when rotating side-by-side apps

Update configuration with WM first and check if the stacks need to be
resized due to the update. If so, let activity manager resize the stacks
inline, instead of letting WM schedule another pass of resizeStack. This
way the configuration will be updated to the latest before ensureActivity-
ConfigurationLocked, and we don't need another relaunch there.

bug: 27834014

Change-Id: Ib761a96cada0c3247b0480f18370670c593159da
core/java/android/view/IWindowManager.aidl
core/java/com/android/internal/util/ArrayUtils.java
services/core/java/com/android/server/am/ActivityManagerService.java
services/core/java/com/android/server/wm/TaskStack.java
services/core/java/com/android/server/wm/WindowManagerService.java
tools/layoutlib/bridge/src/android/view/IWindowManagerImpl.java