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

Commit 11f25ba1 authored by Karthik Ravi Shankar's avatar Karthik Ravi Shankar Committed by android-build-merger
Browse files

Merge "Fix window visibility during layout" into oc-mr1-dev

am: 7a59a622

Change-Id: Ic4726a77ce790616d50ff84edc35e7941b409659
parents d4083dc3 7a59a622
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -231,6 +231,7 @@ public class SurfaceView extends View implements ViewRootImpl.WindowStoppedCallb
        updateRequestedVisibility();

        mAttachedToWindow = true;
        mParent.requestTransparentRegion(SurfaceView.this);
        if (!mGlobalListenersAdded) {
            ViewTreeObserver observer = getViewTreeObserver();
            observer.addOnScrollChangedListener(mScrollChangedListener);
@@ -269,8 +270,6 @@ public class SurfaceView extends View implements ViewRootImpl.WindowStoppedCallb
        if (mPendingReportDraws > 0) {
            mDrawFinished = true;
            if (mAttachedToWindow) {
                mParent.requestTransparentRegion(SurfaceView.this);
                
                notifyDrawFinished();
                invalidate();
            }