diff options
| author | 2022-11-30 00:05:50 +0000 | |
|---|---|---|
| committer | 2022-11-30 19:02:32 +0000 | |
| commit | 789c3395b6a5093c99bda06581437f909be59a3c (patch) | |
| tree | 66bf55498aa3b9c1a96bbc66b92043224f7870ee /libs/androidfw/StringPool.cpp | |
| parent | 82e7167b9c22b29efb02586334cce15b5af908d0 (diff) | |
Sort tasks by Z-order instead of lastActiveTime
lastActiveTime is not a reliable way to determine the Z order of
freeform tasks because it misses Z order changes of already
visible tasks (e.g. when bringing a semi occluded task to the top).
This change keeps track of the freeform task's Z-order by observing
TaskListener's appear/vanish and focus changes.
Bug: 258056163
Test: atest DesktopModeControllerTest DesktopModeTaskRepositoryTest
Test: manual:
1. Clear all open tasks and enable desktop mode
2. Launch YT from taskbar
3. Launch Gmail from taskbar
4. Tap on YT to bring to front
5. Launch Photos from taskbar
Top->bottom order is Photos, YT, Gmail
Change-Id: I6f2751b32f43d7b8ac2f97ce4c06be7ffa4dec11
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions