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

Commit 93d46952 authored by Romain Guy's avatar Romain Guy Committed by Android Git Automerger
Browse files

am 67603c6e: Recreate TextureView\'s display list on attach Bug #9425270

* commit '67603c6e':
  Recreate TextureView's display list on attach Bug #9425270
parents 65f7a95f 67603c6e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -108,6 +108,7 @@ public class TextureView extends View {
    private HardwareLayer mLayer;
    private SurfaceTexture mSurface;
    private SurfaceTextureListener mListener;
    private boolean mHadSurface;

    private boolean mOpaque = true;

@@ -202,6 +203,11 @@ public class TextureView extends View {
            Log.w(LOG_TAG, "A TextureView or a subclass can only be "
                    + "used with hardware acceleration enabled.");
        }

        if (mHadSurface) {
            invalidate(true);
            mHadSurface = false;
        }
    }

    @Override
@@ -241,6 +247,8 @@ public class TextureView extends View {
            if (shouldRelease) mSurface.release();
            mSurface = null;
            mLayer = null;

            mHadSurface = true;
        }
    }