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

Commit 851e7e43 authored by Robert Carr's avatar Robert Carr
Browse files

SurfaceView: Correct inverted alpha detection condition.

Careless mistake on my part :). Sorry about that.

Test: Try an app with two SV like Netflix verify top SurfaceView doesn't occlude bottom one.
Bug: 62375611
Bug: 62113351
Change-Id: Ia33aabf8b8e276f70365d62b82f113ecd3bee2fa
parent 42abe82b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -454,7 +454,7 @@ public class SurfaceView extends View implements ViewRootImpl.WindowStoppedCallb
    }

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