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

Commit 9c711488 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix the visibility of SurfaceView in InlineContentView." into rvc-dev

parents 1f7c4db5 db0dbea1
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -21,8 +21,8 @@ import android.annotation.Nullable;
import android.annotation.TestApi;
import android.content.Context;
import android.graphics.PixelFormat;
import android.graphics.Rect;
import android.graphics.PointF;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.util.Log;
import android.view.SurfaceControl;
@@ -156,7 +156,8 @@ public class InlineContentView extends ViewGroup {
        @Override
        public void onDraw() {
            computeParentPositionAndScale();
            mSurfaceView.setVisibility(VISIBLE);
            final int visibility = InlineContentView.this.isShown() ? VISIBLE : GONE;
            mSurfaceView.setVisibility(visibility);
        }
    };