OSDN Git Service

Update the task stack state when resizing the tasks after the PiP animation
authorWinson Chung <winsonc@google.com>
Thu, 31 May 2018 22:51:47 +0000 (15:51 -0700)
committerWinson Chung <winsonc@google.com>
Thu, 31 May 2018 23:06:43 +0000 (16:06 -0700)
commit15036ca521489531f89e9eae16fb87601c9f7ea2
tree66e27ade6e2b75b38313d7727f66e3540de549bd
parentf04b6c8d777691343fa883f60245962be777a7fb
Update the task stack state when resizing the tasks after the PiP animation

- When the animation into PiP ends, we clear the task stack state and
  request a layout prior to resizing the the stack to update the task
  bounds to the stack bounds. This triggers a relayout from the client,
  which fetches the new configuration prior to handling the PiP mode/config
  change scheduled as a part of the PiP mode change.

  We can instead update the task stack state when we resize the tasks to
  ensure that we don't relayout multiple times.

Bug: 75995355
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerPinnedStackTests

Change-Id: I58a6e30651f16b85ec160e977554b8d091b461ec
services/core/java/com/android/server/am/ActivityStack.java
services/core/java/com/android/server/am/ActivityStackSupervisor.java
services/core/java/com/android/server/wm/StackWindowController.java
services/core/java/com/android/server/wm/TaskStack.java