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

Commit 909495e9 authored by Louis Chang's avatar Louis Chang Committed by Android (Google) Code Review
Browse files

Merge "Make sure the relayoutWindow is called when Activity restarted" into tm-dev

parents ce944699 4b91fbf9
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -2019,13 +2019,10 @@ public final class ViewRootImpl implements ViewParent,
                renderer.setStopped(mStopped);
            }
            if (!mStopped) {
                // Unnecessary to traverse if the window is not yet visible.
                if (getHostVisibility() == View.VISIBLE) {
                // Make sure that relayoutWindow will be called to get valid surface because
                // the previous surface may have been released.
                mAppVisibilityChanged = true;
                scheduleTraversals();
                }
            } else {
                if (renderer != null) {
                    renderer.destroyHardwareResources(mView);