OSDN Git Service

Updating moveTaskToBack to handle PiP activities
authorWinson Chung <winsonc@google.com>
Wed, 8 Mar 2017 00:54:31 +0000 (16:54 -0800)
committerWinson Chung <winsonc@google.com>
Wed, 8 Mar 2017 19:04:56 +0000 (11:04 -0800)
commit261c0f3c69ca471b72afac5e26d332ac1de3f9a3
treef99321ae0657c76a88a3e73dc056b02d645b35e8
parenteb7ca5ca3a928821117e6f905b01ac927c12584f
Updating moveTaskToBack to handle PiP activities

- When a PiP activity calls moveTaskToBack(), we should fall through to
  the same behaviour as dismissing the PiP if there are no other tasks
  to show.

Bug: 36034065
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testMovePipToBackWithNoFullscreenStack
Test: #testMovePipToBackWithVisibleFullscreenStack
Test: #testMovePipToBackWithHiddenFullscreenStack

Change-Id: I83c3d27dabc031546f9f1cf20b808bb8f13d4646
Signed-off-by: Winson Chung <winsonc@google.com>
services/core/java/com/android/server/am/ActivityManagerService.java
services/core/java/com/android/server/am/ActivityStack.java