OSDN Git Service

Move activities to fullscreen stack on display removal
authorAndrii Kulian <akulian@google.com>
Fri, 17 Feb 2017 00:11:30 +0000 (16:11 -0800)
committerAndrii Kulian <akulian@google.com>
Fri, 17 Feb 2017 00:11:30 +0000 (16:11 -0800)
commita33818cf1cd45f1b3c6ba7634f0d1b8b0e940ecd
tree0c5e254d68464483abbb70be45fbb87a3d8fd8c4
parente4a2476ea9fbbb453d3fc137a1c876eb322eb868
Move activities to fullscreen stack on display removal

Instead of moving dynamic stacks from secondary to primary display
on removal, move activities to fullscreen stack. This way activities
are guaranteed to appear in valid launch stack and will respect
split-screen mode bounds.

Bug: 34263289
Bug: 35258038
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testStackFocusSwitchOnDisplayRemoved
Test: #testStackFocusSwitchOnDisplayRemoved2
Change-Id: Iebd3bef3e0cf8afd482630dd5ad8ec4315497950
services/core/java/com/android/server/am/ActivityStackSupervisor.java