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

Commit a8a2f97c authored by Romain Guy's avatar Romain Guy
Browse files

Don't update TextureView's surface if the Layer doesn't exist

Change-Id: Ifcc1a7a271f6c236a3aebd3726b7025348e64920
parent 5d911c3a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -187,9 +187,11 @@ public class TextureView extends View {
    public void setOpaque(boolean opaque) {
        if (opaque != mOpaque) {
            mOpaque = opaque;
            if (mLayer != null) {
                updateLayer();
            }
        }
    }

    @Override
    protected void onAttachedToWindow() {