OSDN Git Service

Reduce activity lifecycle churn when exiting split-screen mode.
authorWale Ogunwale <ogunwale@google.com>
Sat, 16 Apr 2016 20:27:23 +0000 (13:27 -0700)
committerWale Ogunwale <ogunwale@google.com>
Sat, 16 Apr 2016 20:34:52 +0000 (13:34 -0700)
commitc8da41e2f4f6087b5ae0e08a30962d8f5231b01c
tree940c04397b6d60e32fef801376853dc3e082d3e8
parenta4c0b1de1a33219b4f8ef1cdfc4e7641ac246f4b
Reduce activity lifecycle churn when exiting split-screen mode.

- Ignore calls to resize the docked stack due to it detaching while we are
already resizing stacks due to the docked stack switching to fullscreen mode.
- Defer resuming activities in a stack we are resizing to fullscreen when the
docked stack is going away. The activities may not be the top most activity
anymore since the activity in the docked stack might be moved on top of it.
- Removed call to ensure configuration in ASS.positionTaskInStackLocked.
This isn't needed as the ensure activities visible call will make sure
the activity is in the right configuration if it is going to be visible and
we don't want to be relaunching it if it isn't going to be visible.

Bug: 28196862
Change-Id: I26460dd9c649b8ec1bf296d5182e9ff6cafe6df0
services/core/java/com/android/server/am/ActivityManagerService.java
services/core/java/com/android/server/am/ActivityStackSupervisor.java