Merge "SurfaceView: Avoid initializing Surface from an invalid SurfaceControl." into oc-dev am: 401b8907d0
am: 2f927d56cf
Change-Id: I2916aa9a24b84d4f379c8ebebc7e19eb4adc96f4
This commit is contained in:
@@ -491,10 +491,10 @@ public class SurfaceView extends View implements ViewRootImpl.WindowStoppedCallb
|
||||
if (myHeight <= 0) myHeight = getHeight();
|
||||
|
||||
final boolean formatChanged = mFormat != mRequestedFormat;
|
||||
final boolean creating = (mSurfaceControl == null || formatChanged)
|
||||
final boolean visibleChanged = mVisible != mRequestedVisible;
|
||||
final boolean creating = (mSurfaceControl == null || formatChanged || visibleChanged)
|
||||
&& mRequestedVisible;
|
||||
final boolean sizeChanged = mSurfaceWidth != myWidth || mSurfaceHeight != myHeight;
|
||||
final boolean visibleChanged = mVisible != mRequestedVisible;
|
||||
final boolean windowVisibleChanged = mWindowVisibility != mLastWindowVisibility;
|
||||
boolean redrawNeeded = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user