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

Commit b30236d8 authored by John Reck's avatar John Reck Committed by gitbuildkicker
Browse files

Fix NPE in TextureView

Bug: 30651595
Change-Id: Ic6cc2a1598de173aaadb4061562236a563a662b3
parent bc32ce6a
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