OSDN Git Service

Move activity to display on launch
authorAndrii Kulian <akulian@google.com>
Wed, 22 Mar 2017 02:37:09 +0000 (19:37 -0700)
committerAndrii Kulian <akulian@google.com>
Tue, 28 Mar 2017 19:33:57 +0000 (19:33 +0000)
commitfab9cd89eef609affbed72d780dc2a006d73196f
tree2639d8bae95c93e041785a5e329d683c6d7a3268
parentcf1f1d9128853f0fa0cef657e2bbb7bf6904c732
Move activity to display on launch

When an activity is launched with displayId specified and there
is an existing matching task on some other display - that task
should be move to the target display.

Bug: 34396961
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testMoveToDisplayOnLaunch
Change-Id: I18b1f0de320039f4f1ac4e248f048a367f886d29
(cherry picked from commit ede131cce47a1d2ebafd25156e5caf26eb880136)
services/core/java/com/android/server/am/ActivityStarter.java