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

Commit 9ffce330 authored by John Reck's avatar John Reck Committed by android-build-merger
Browse files

Fix NPE in TextureView am: 3c2587f2 am: 8fe31ec0

am: 2f072bae

Change-Id: I8c1a2c4505086f5022fb4e0893cf32e201c2a31b
parents 3242a9a7 2f072bae
Loading
Loading
Loading
Loading
+13 −11
Original line number Diff line number Diff line
@@ -242,6 +242,7 @@ public class TextureView extends View {
    }

    private void releaseSurfaceTexture() {
        if (mSurface != null) {
            boolean shouldRelease = true;

            if (mListener != null) {
@@ -258,6 +259,7 @@ public class TextureView extends View {
            mSurface = null;
            mHadSurface = true;
        }
    }

    /**
     * The layer type of a TextureView is ignored since a TextureView is always