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

Commit 3946916d authored by Rob Carr's avatar Rob Carr Committed by Android (Google) Code Review
Browse files

Merge "SurfaceView: Correct inverted alpha detection condition." into oc-dev

parents 301fc823 851e7e43
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -454,7 +454,7 @@ public class SurfaceView extends View implements ViewRootImpl.WindowStoppedCallb
    }
    }


    private void updateOpaqueFlag() {
    private void updateOpaqueFlag() {
        if (PixelFormat.formatHasAlpha(mRequestedFormat)) {
        if (!PixelFormat.formatHasAlpha(mRequestedFormat)) {
            mSurfaceFlags |= SurfaceControl.OPAQUE;
            mSurfaceFlags |= SurfaceControl.OPAQUE;
        } else {
        } else {
            mSurfaceFlags &= ~SurfaceControl.OPAQUE;
            mSurfaceFlags &= ~SurfaceControl.OPAQUE;