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

Commit 004e857c authored by Yao Qijing's avatar Yao Qijing
Browse files

Make sure topActivity always retrieves focus when move task to back

In a freeform environment, multiple windows can be visible and
therefore RESUMED at the same time. It means that when moving a task to
back, the topActivity that is going to be focused may be RESUMED.
However, there's a check in `moveTaskToBackInner()` to only trigger
`resumeFocusedTasksTopActivities()` when topActivity is not RESUMED,
which results in DisplayContent#mFocusedApp not getting updated
correctly.
This CL fixes the bug by triggering DisplayContent#setFocusedApp() even
topActivity is RESUMED.

Bug: 276136272
Test: Manual testing to make sure the top activity can get focused
Change-Id: I51371394830277777ff7983fd1d1c14d63fa505a
parent ad24c2d9
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