Don't move stashed PiP in response to keep clear areas changes.

Test: manually, enter pip, stash it, open an app -> pip doesn't move
Bug: 183746978
Change-Id: Iaffb4e1683fe3fb1238fa3a7ae12f04055e40704
This commit is contained in:
Mateusz Cicheński
2022-10-07 19:15:33 +00:00
parent 99f5cefd6c
commit 6a113515ec

View File

@@ -161,6 +161,10 @@ public class PipController implements PipTransitionController.PipTransitionCallb
// early bail out if the keep clear areas feature is disabled
return;
}
if (mPipBoundsState.isStashed()) {
// don't move when stashed
return;
}
// if there is another animation ongoing, wait for it to finish and try again
if (mPipAnimationController.isAnimating()) {
mMainExecutor.removeCallbacks(