Merge "Don't move stashed PiP in response to keep clear areas changes." into tm-qpr-dev

This commit is contained in:
Mateusz Cicheński
2022-10-10 16:50:12 +00:00
committed by Android (Google) Code Review

View File

@@ -161,6 +161,10 @@ public class PipController implements PipTransitionController.PipTransitionCallb
// early bail out if the keep clear areas feature is disabled // early bail out if the keep clear areas feature is disabled
return; 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 there is another animation ongoing, wait for it to finish and try again
if (mPipAnimationController.isAnimating()) { if (mPipAnimationController.isAnimating()) {
mMainExecutor.removeCallbacks( mMainExecutor.removeCallbacks(