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

Commit 6185ac47 authored by Evan Rosky's avatar Evan Rosky Committed by Android (Google) Code Review
Browse files

Merge "Show DA surface in potential edge-case" into main

parents 9c3cfbc9 edce8fef
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1870,7 +1870,13 @@ class Transition implements BLASTSyncEngine.TransactionReadyListener {
            final DisplayArea<?> da = wc.asDisplayArea();
            if (da == null) continue;
            if (da.isVisibleRequested()) {
                mController.mValidateDisplayVis.remove(da);
                final int inValidateList = mController.mValidateDisplayVis.indexOf(da);
                if (inValidateList >= 0
                        // The display-area is visible, but if we only detect a non-visibility
                        // change, then we shouldn't remove the validator.
                        && !mChanges.get(da).mVisible) {
                    mController.mValidateDisplayVis.remove(inValidateList);
                }
            } else {
                // In case something accidentally hides a displayarea and nothing shows it again.
                mController.mValidateDisplayVis.add(da);