Merge "SurfaceView: Reset window stopped state when attaching to window." into oc-dev

This commit is contained in:
TreeHugger Robot
2017-05-16 21:51:24 +00:00
committed by Android (Google) Code Review

View File

@@ -245,6 +245,7 @@ public class SurfaceView extends View implements ViewRootImpl.WindowStoppedCallb
super.onAttachedToWindow(); super.onAttachedToWindow();
getViewRootImpl().addWindowStoppedCallback(this); getViewRootImpl().addWindowStoppedCallback(this);
mWindowStopped = false;
mParent.requestTransparentRegion(this); mParent.requestTransparentRegion(this);
mViewVisibility = getVisibility() == VISIBLE; mViewVisibility = getVisibility() == VISIBLE;