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

Commit 06950d6f authored by Jorge Gil's avatar Jorge Gil
Browse files

Resume root task's children preserving order

Changes #resumeTopActivityUncheckedLocked for the non-leaf case from
resuming top->bottom to resuming bottom->top to ensure the original Z
order is preserved inside desktop windowing root tasks used for "desks".

First, we find the tasks that should be resumed (are visible)
top->bottom to keep the break behavior to avoid unnecesarily resuming
activities that won't be visible in the end.
Then, we resume the tasks found in reverse (bottom->top) order so that
order is kept unchanged.

Flag: com.android.window.flags.enable_multiple_desktops_backend
Fix: 414410702
Test: in desktop-first display, open Gmail, then Chrome - verify
"adb shell dumpsys activity activities | grep -e mFocusedApp" shows
Chrome is the focused app, not Gmail

Change-Id: If833078db1ea907ed9e2d5d17b0f309590fca14c
parent e397f4dc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment