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

Commit 896564be 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

am: 11f25ba1

Change-Id: I3620a51554e6e8101d5a013f9287339bb1031806
parents e551ca77 11f25ba1
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();
            }