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

Commit 022456ca authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Open up #getAspectRatio and #getInsetBounds." into rvc-dev am:...

Merge "Open up #getAspectRatio and #getInsetBounds." into rvc-dev am: e064c531 am: 10b70fc7 am: 3ff0f5fb

Change-Id: Ieaf43f1eb6f34c3e273236e767c1010a247f833d
parents bf14142d 3ff0f5fb
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -126,6 +126,10 @@ public class PipBoundsHandler {
        mCurrentMinSize = minEdgeSize;
    }

    protected float getAspectRatio() {
        return mAspectRatio;
    }

    /**
     * Sets both shelf visibility and its height if applicable.
     * @return {@code true} if the internal shelf state is changed, {@code false} otherwise.
@@ -419,7 +423,7 @@ public class PipBoundsHandler {
    /**
     * Populates the bounds on the screen that the PIP can be visible in.
     */
    private void getInsetBounds(Rect outRect) {
    protected void getInsetBounds(Rect outRect) {
        try {
            mWindowManager.getStableInsets(mContext.getDisplayId(), mTmpInsets);
            outRect.set(mTmpInsets.left + mScreenEdgeInsets.x,