Merge "SurfaceView: Reset window stopped state when attaching to window." into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
97bcf59fce
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user