Skip to content
Snippets Groups Projects
Commit a3bde4ea authored by Vinit Nayak's avatar Vinit Nayak Committed by Android Build Coastguard Worker
Browse files

Keep split on top when going to Pip if not swipe to home

* If main or side stage have a child, we move that stage to
be on top when performing the split to pip transition.
* We also prevent the stage with a child from dismissing in
DefaultMixedHandler#animateEnterPipFromSplit
* In both cases we use isSplitScreenVisible() as our proxy to determine
if we're dismissing one of the split pairs vs swiping up to home,
since in the swipe up case split becomes invisible and then Pip requests
to be shown as a separate transition

Bug: 293254265
Test: Steps don't repro. Pip shows up and hides when it's supposed to.
There's a KI quickswitch issue but happens w/o this change
(b/303722342)

(cherry picked from commit 8003d4cb)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ed9e0a512bc2b483907c69cc9358411ef9e07be7)
Merged-In: I7892ac1612ab2dccdd81c0bece987aab3ad69194
Change-Id: I7892ac1612ab2dccdd81c0bece987aab3ad69194
parent 6ff78c36
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment