Fix SurfaceView callback timings
In R we consolidated SetWindowStopped to use ViewRootImpl surface changed callbacks. This affected the timings of when the app would get SurfaceView SurfaceHolder callbacks. The callbacks would be invoked in ViewRootImpl traversal before the measure pass. If the app tried to add to the view hierarchy in the callback, the view would not measure and layout the new view properly. To fix this, move the ViewRootImp SurfaceChangedCallback after the measure pass. Test: app in bug can add a view from SurfaceHolder.Callback#surfaceCreated Fixes: 181529599 Change-Id: I06923113f7fc8e90242060c34f1d309d53b5a87b
Loading
Please register or sign in to comment