diff options
| author | 2023-04-05 08:19:27 +0000 | |
|---|---|---|
| committer | 2023-04-11 04:50:31 +0000 | |
| commit | 004e857ce5cb60b3bfab8756bdf5df1779f11924 (patch) | |
| tree | ce253138db3a67aff84703669cd654dedf287bf8 /libs/androidfw/StringPool.cpp | |
| parent | ad24c2d9a46d646ab1d730d23718282eb68b135b (diff) | |
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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions