Loading core/java/android/view/TextureView.java +6 −0 Original line number Diff line number Diff line Loading @@ -723,6 +723,12 @@ public class TextureView extends View { mSurface.release(); } mSurface = surfaceTexture; // If the view is visible, update the listener in the new surface to use // the existing listener in the view. if (((mViewFlags & VISIBILITY_MASK) == VISIBLE)) { mSurface.setOnFrameAvailableListener(mUpdateListener, mAttachInfo.mHandler); } mUpdateSurface = true; invalidateParentIfNeeded(); } Loading Loading
core/java/android/view/TextureView.java +6 −0 Original line number Diff line number Diff line Loading @@ -723,6 +723,12 @@ public class TextureView extends View { mSurface.release(); } mSurface = surfaceTexture; // If the view is visible, update the listener in the new surface to use // the existing listener in the view. if (((mViewFlags & VISIBILITY_MASK) == VISIBLE)) { mSurface.setOnFrameAvailableListener(mUpdateListener, mAttachInfo.mHandler); } mUpdateSurface = true; invalidateParentIfNeeded(); } Loading