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

Commit b8664a10 authored by Saho Kobayashi's avatar Saho Kobayashi
Browse files

Remove invisible tasks from top tasks on collectOrderChanges

Flag: com.android.window.flags.polish_close_wallpaper_includes_open_change
Bug: 436564031
Test: manual(Observe the backward freeform window is focused after
close)

Change-Id: I29328dc2bef4e870f45e51ec168bb7c9448e98d2
parent f8e8d178
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -888,7 +888,11 @@ class Transition implements BLASTSyncEngine.TransactionReadyListener {
        for (int i = task.getChildCount() - 1; i >= 0; --i) {
            final Task child = task.getChildAt(i).asTask();
            if (child == null) return;
            if (child.getWindowConfiguration().isAlwaysOnTop()) continue;
            if (child.getWindowConfiguration().isAlwaysOnTop()
                    && (!com.android.window.flags.Flags.polishCloseWallpaperIncludesOpenChange()
                        || !child.isVisibleRequested())) {
                continue;
            }
            out.add(child);
            addOnTopTasks(child, out);
            break;