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

Commit 58f8977c authored by Josh Tsuji's avatar Josh Tsuji Committed by Automerger Merge Worker
Browse files

Merge "Only notify the floating coordinator of new bounds if we're in PIP."...

Merge "Only notify the floating coordinator of new bounds if we're in PIP." into rvc-dev am: a48a152c am: a80b3923

Change-Id: Ida2d7e1e2eebcf17d36eafe45763ecd638ef9b75
parents 8759786a a80b3923
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -214,6 +214,10 @@ public class PipTaskOrganizer extends TaskOrganizer {
        return new Rect(mLastReportedBounds);
        return new Rect(mLastReportedBounds);
    }
    }


    public boolean isInPip() {
        return mInPip;
    }

    /**
    /**
     * Registers {@link PipTransitionCallback} to receive transition callbacks.
     * Registers {@link PipTransitionCallback} to receive transition callbacks.
     */
     */
+4 −1
Original line number Original line Diff line number Diff line
@@ -168,8 +168,11 @@ public class PipMotionHelper implements PipAppOpsListener.Callback,
    void synchronizePinnedStackBounds() {
    void synchronizePinnedStackBounds() {
        cancelAnimations();
        cancelAnimations();
        mBounds.set(mPipTaskOrganizer.getLastReportedBounds());
        mBounds.set(mPipTaskOrganizer.getLastReportedBounds());

        if (mPipTaskOrganizer.isInPip()) {
            mFloatingContentCoordinator.onContentMoved(this);
            mFloatingContentCoordinator.onContentMoved(this);
        }
        }
    }


    /**
    /**
     * Synchronizes the current bounds with either the pinned stack, or the ongoing animation. This
     * Synchronizes the current bounds with either the pinned stack, or the ongoing animation. This