Loading core/java/android/view/TextureView.java +3 −1 Original line number Diff line number Diff line Loading @@ -405,7 +405,9 @@ public class TextureView extends View { // To cancel updates, the easiest thing to do is simply to remove the // updates listener if (visibility == VISIBLE) { if (mLayer != null) { mSurface.setOnFrameAvailableListener(mUpdateListener, mAttachInfo.mHandler); } updateLayerAndInvalidate(); } else { mSurface.setOnFrameAvailableListener(null); Loading Loading
core/java/android/view/TextureView.java +3 −1 Original line number Diff line number Diff line Loading @@ -405,7 +405,9 @@ public class TextureView extends View { // To cancel updates, the easiest thing to do is simply to remove the // updates listener if (visibility == VISIBLE) { if (mLayer != null) { mSurface.setOnFrameAvailableListener(mUpdateListener, mAttachInfo.mHandler); } updateLayerAndInvalidate(); } else { mSurface.setOnFrameAvailableListener(null); Loading