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

Commit 05d70856 authored by Satish Yalla (xWF)'s avatar Satish Yalla (xWF) Committed by Android (Google) Code Review
Browse files

Revert "Fixed a bug in logical operations in Transition#addOnTopTasks"

This reverts commit f04769b1.

Reason for revert: DroidMonitor: Potential culprit for b/442393190 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Bug: 442393190
Change-Id: Ifdb474993d382daa72ac85ef404f7b33655af75b
parent f04769b1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -883,13 +883,13 @@ class Transition implements BLASTSyncEngine.TransactionReadyListener {
        recordDisplay(from.getDisplayContent());
    }

    /** Adds the top visible non-alwaysOnTop tasks within `task` to `out`. */
    /** Adds the top non-alwaysOnTop tasks within `task` to `out`. */
    private static void addOnTopTasks(Task task, ArrayList<Task> out) {
        for (int i = task.getChildCount() - 1; i >= 0; --i) {
            final Task child = task.getChildAt(i).asTask();
            if (child == null) return;
            if (child.getWindowConfiguration().isAlwaysOnTop()
                    || (!com.android.window.flags.Flags.polishCloseWallpaperIncludesOpenChange()
                    && (!com.android.window.flags.Flags.polishCloseWallpaperIncludesOpenChange()
                        || !child.isVisibleRequested())) {
                continue;
            }