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

Commit 068b429c authored by Bryce Lee's avatar Bryce Lee Committed by Android (Google) Code Review
Browse files

Merge "Revert "ViewRootImpl: Fix child lifetime."" into oc-dev

parents cae7db3c 16e5089e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -683,8 +683,7 @@ public class SurfaceView extends View {
                    mTranslator.translateRectInAppWindowToScreen(mScreenRect);
                }

                if (mSurfaceControl != null
                        && (!isHardwareAccelerated() || !mRtHandlingPositionUpdates)) {
                if (!isHardwareAccelerated() || !mRtHandlingPositionUpdates) {
                    try {
                        if (DEBUG) Log.d(TAG, String.format("%d updateSurfacePosition UI, " +
                                "postion = [%d, %d, %d, %d]", System.identityHashCode(this),
+3 −12
Original line number Diff line number Diff line
@@ -1249,13 +1249,6 @@ public final class ViewRootImpl implements ViewParent,
        mIsAmbientMode = ambient;
    }

    void setWindowVisibility(int visibility) {
        if (visibility != mAttachInfo.mWindowVisibility) {
            mAttachInfo.mWindowVisibility = visibility;
            mView.dispatchWindowVisibilityChanged(visibility);
        }
    }

    void setWindowStopped(boolean stopped) {
        if (mStopped != stopped) {
            mStopped = stopped;
@@ -1270,7 +1263,6 @@ public final class ViewRootImpl implements ViewParent,
                if (renderer != null) {
                    renderer.destroyHardwareResources(mView);
                }
                mView.dispatchWindowVisibilityChanged(View.GONE);
            }
        }
    }
@@ -1305,8 +1297,7 @@ public final class ViewRootImpl implements ViewParent,
    }

    int getHostVisibility() {
        return (mAppVisible || mForceDecorViewVisibility) && !mStopped
            ? mView.getVisibility() : View.GONE;
        return (mAppVisible || mForceDecorViewVisibility) ? mView.getVisibility() : View.GONE;
    }

    /**
@@ -1663,8 +1654,8 @@ public final class ViewRootImpl implements ViewParent,
        }

        if (viewVisibilityChanged) {
            setWindowVisibility(viewVisibility);

            mAttachInfo.mWindowVisibility = viewVisibility;
            host.dispatchWindowVisibilityChanged(viewVisibility);
            if (viewUserVisibilityChanged) {
                host.dispatchVisibilityAggregated(viewVisibility == View.VISIBLE);
            }