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

Commit a2bd3b69 authored by Robert Carr's avatar Robert Carr
Browse files

Correct SurfaceView background visibility.

This corrects an error introduced in a recent refactoring. The background
SHOULD be visible when the SurfaceView is opaque, the idea being that the background
will provide for opacity even if the SurfaceView hasn't finished rendering.

Bug: 123421088
Test: Manual. SurfaceViewSyncTests. ASurfaceControlTest.
Change-Id: Ie0690e07474c30d9324e0b0f26db136e4d7a0fa2
parent 5818b8bd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -492,7 +492,7 @@ public class SurfaceView extends View implements ViewRootImpl.WindowStoppedCallb
        if (mBackgroundControl == null) {
            return;
        }
        if ((mSurfaceFlags & PixelFormat.OPAQUE) == 0) {
        if ((mSurfaceFlags & PixelFormat.OPAQUE) != 0) {
            mBackgroundControl.show();
            mBackgroundControl.setLayer(Integer.MIN_VALUE);
        } else {