Loading core/java/android/view/ViewRootImpl.java +14 −7 Original line number Diff line number Diff line Loading @@ -1449,6 +1449,9 @@ public final class ViewRootImpl implements ViewParent, } if (mStopped) { if (mSurfaceHolder != null) { notifySurfaceDestroyed(); } destroySurface(); } } Loading Loading @@ -2393,13 +2396,7 @@ public final class ViewRootImpl implements ViewParent, } mIsCreating = false; } else if (hadSurface) { mSurfaceHolder.ungetCallbacks(); SurfaceHolder.Callback callbacks[] = mSurfaceHolder.getCallbacks(); if (callbacks != null) { for (SurfaceHolder.Callback c : callbacks) { c.surfaceDestroyed(mSurfaceHolder); } } notifySurfaceDestroyed(); mSurfaceHolder.mSurfaceLock.lock(); try { mSurfaceHolder.mSurface = new Surface(); Loading Loading @@ -2667,6 +2664,16 @@ public final class ViewRootImpl implements ViewParent, mIsInTraversal = false; } private void notifySurfaceDestroyed() { mSurfaceHolder.ungetCallbacks(); SurfaceHolder.Callback[] callbacks = mSurfaceHolder.getCallbacks(); if (callbacks != null) { for (SurfaceHolder.Callback c : callbacks) { c.surfaceDestroyed(mSurfaceHolder); } } } private void maybeHandleWindowMove(Rect frame) { // TODO: Well, we are checking whether the frame has changed similarly Loading Loading
core/java/android/view/ViewRootImpl.java +14 −7 Original line number Diff line number Diff line Loading @@ -1449,6 +1449,9 @@ public final class ViewRootImpl implements ViewParent, } if (mStopped) { if (mSurfaceHolder != null) { notifySurfaceDestroyed(); } destroySurface(); } } Loading Loading @@ -2393,13 +2396,7 @@ public final class ViewRootImpl implements ViewParent, } mIsCreating = false; } else if (hadSurface) { mSurfaceHolder.ungetCallbacks(); SurfaceHolder.Callback callbacks[] = mSurfaceHolder.getCallbacks(); if (callbacks != null) { for (SurfaceHolder.Callback c : callbacks) { c.surfaceDestroyed(mSurfaceHolder); } } notifySurfaceDestroyed(); mSurfaceHolder.mSurfaceLock.lock(); try { mSurfaceHolder.mSurface = new Surface(); Loading Loading @@ -2667,6 +2664,16 @@ public final class ViewRootImpl implements ViewParent, mIsInTraversal = false; } private void notifySurfaceDestroyed() { mSurfaceHolder.ungetCallbacks(); SurfaceHolder.Callback[] callbacks = mSurfaceHolder.getCallbacks(); if (callbacks != null) { for (SurfaceHolder.Callback c : callbacks) { c.surfaceDestroyed(mSurfaceHolder); } } } private void maybeHandleWindowMove(Rect frame) { // TODO: Well, we are checking whether the frame has changed similarly Loading