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

Commit 8352f89f authored by Vishnu Nair's avatar Vishnu Nair Committed by Automerger Merge Worker
Browse files

Merge "Check if the sc is valid when finishing seamless rotation" into sc-dev am: a3e2def1

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13876207

Change-Id: Ia3d0349a4ac906acde6ef1eff5f5410868d3fa91
parents 4a52f9f5 a3e2def1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -102,6 +102,10 @@ public class SeamlessRotator {
     * window in the new orientation.
     */
    void finish(Transaction t, WindowContainer win) {
        if (win.mSurfaceControl == null || !win.mSurfaceControl.isValid()) {
            return;
        }

        mTransform.reset();
        t.setMatrix(win.mSurfaceControl, mTransform, mFloat9);
        t.setPosition(win.mSurfaceControl, win.mLastSurfacePosition.x, win.mLastSurfacePosition.y);