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

Commit 907f2644 authored by Vishnu Nair's avatar Vishnu Nair Committed by Android (Google) Code Review
Browse files

Merge "SurfaceView: Fix incorrect position changed check"

parents 722e32c6 3c15df1d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -914,7 +914,7 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
                && mRequestedVisible;
        final boolean sizeChanged = mSurfaceWidth != myWidth || mSurfaceHeight != myHeight;
        final boolean windowVisibleChanged = mWindowVisibility != mLastWindowVisibility;
        getLocationInSurface(mLocation);
        getLocationInWindow(mLocation);
        final boolean positionChanged = mWindowSpaceLeft != mLocation[0]
            || mWindowSpaceTop != mLocation[1];
        final boolean layoutSizeChanged = getWidth() != mScreenRect.width()
@@ -925,7 +925,6 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
        if (creating || formatChanged || sizeChanged || visibleChanged ||
                (mUseAlpha && alphaChanged) || windowVisibleChanged ||
                positionChanged || layoutSizeChanged || hintChanged) {
            getLocationInWindow(mLocation);

            if (DEBUG) Log.i(TAG, System.identityHashCode(this) + " "
                    + "Changes: creating=" + creating