Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a113515 authored by Mateusz Cicheński's avatar Mateusz Cicheński
Browse files

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
parent 99f5cefd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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(