OSDN Git Service

Allow resume of parent activity that launches PiP
authorHongwei Wang <hwwang@google.com>
Wed, 24 Jul 2019 18:23:57 +0000 (11:23 -0700)
committerHongwei Wang <hwwang@google.com>
Fri, 26 Jul 2019 17:01:16 +0000 (10:01 -0700)
commitacad244c70ca74d25d4e0d2bc7b738e7b5fa6356
treef1e54b486a1a0b560d6617cc00279255137392ae
parentdc860bdfa8da9a2532aa12da2eb946751c1df558
Allow resume of parent activity that launches PiP

For an application that
- Targets pre-Q
- Launches activity A which goes into PiP mode from activity B

We prevents launching activity B from recents since we only allow
top-most visible activities for pre-Q app.

The restriction is first introduced in ag/6077827

Bug: 137085496
Test: Launch parent activity of PiP from recents
Test: atest ActivityLifecyclePipTests
Test: atest ActivityLifecycleSplitScreenTests
Test: atest WindowProcessControllerTests
Change-Id: I3a4a2c874e401a6d278d1b1b8b3fb5ee8548b8c7
services/core/java/com/android/server/wm/WindowProcessController.java