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

Commit 21f6c3bb authored by Jorge Gil's avatar Jorge Gil
Browse files

Desks: Use supported display when moving task to front

When moving a background desktop task to front and the desk it belonged
to prior to being in the background has already been removed, it is
possible that the display id used to find a default desk for it was a
display that does not support desktop mode.

Instead, try to find a suitable display in this order:
1. The display the task is associated with (via its TaskInfo)
2. The display in focus
3. Any display that supports desktop
4. DEFAULT_DISPLAY

It's still possible that (4) does not support desktop, but that is left
to callsites to handle as an error.

Bug: 417944041
Flag: EXEMPT bug fix
Test: Open Gmail in CD, use adb command to remove its desk and then
moveTaskToFront

Change-Id: I0009aa1b77c12403beef38b8626ea26fec047dea
parent 038937b1
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