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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user