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

Commit 31a285b0 authored by Jackal Guo's avatar Jackal Guo Committed by Android (Google) Code Review
Browse files

Merge "Correct the bound if it's from outside of screen"

parents 8e607d84 9a341abd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1646,7 +1646,7 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
    }

    private void updateScreenMatrixForEmbeddedHierarchy() {
        getBoundsOnScreen(mTmpRect, true);
        getBoundsOnScreen(mTmpRect);
        mTmpMatrix.reset();
        mTmpMatrix.setTranslate(mTmpRect.left, mTmpRect.top);
        mTmpMatrix.postScale(mScreenRect.width() / (float) mSurfaceWidth,