am 7835d4fb: Merge "Fix SurfaceView notifies on invalid surfaces."
* commit '7835d4fb4e99bac698599a269ce7f84f2de1fb46': Fix SurfaceView notifies on invalid surfaces.
This commit is contained in:
committed by
Android Git Automerger
commit
807c7ae00b
@@ -531,7 +531,7 @@ public class SurfaceView extends View {
|
||||
|
||||
mSurface.transferFrom(mNewSurface);
|
||||
|
||||
if (visible) {
|
||||
if (visible && mSurface.isValid()) {
|
||||
if (!mSurfaceCreated && (surfaceChanged || visibleChanged)) {
|
||||
mSurfaceCreated = true;
|
||||
mIsCreating = true;
|
||||
|
||||
Reference in New Issue
Block a user