Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 432fe982 authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE in onVisibilityChanged" into lmp-preview-dev

parents 3bd4feec 2dedafb4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);