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

Commit 57f02619 authored by Robert Carr's avatar Robert Carr
Browse files

SurfaceView: Correct comparison operator.

We show the background when the Surface view is BEHIND
not when it is in front.

Bug: 129359905
Test: SurfaceViewSurfaceValidatorTest#testOnTopHasNoBackground
Change-Id: I3f3139d50972626e4c70139f1008d70d2935cd0b
parent 82ccc593
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -491,7 +491,7 @@ public class SurfaceView extends View implements ViewRootImpl.WindowStoppedCallb
        if (mBackgroundControl == null) {
            return;
        }
        if ((mSubLayer > 0) && ((mSurfaceFlags & SurfaceControl.OPAQUE) != 0)) {
        if ((mSubLayer < 0) && ((mSurfaceFlags & SurfaceControl.OPAQUE) != 0)) {
            mBackgroundControl.show();
            mBackgroundControl.setLayer(Integer.MIN_VALUE);
        } else {