diff options
| author | 2024-08-23 04:49:19 +0000 | |
|---|---|---|
| committer | 2024-08-26 01:43:45 +0000 | |
| commit | b5e2ecdaa3efbb78c8a8f4601d0c75c749e32e12 (patch) | |
| tree | 256d5752610c5da8064bfaca06a27a1fa9e52d7a /api/coverage/tools | |
| parent | 03a6f8bf1c2034c455e5f0c2ccb712535d2aec55 (diff) | |
Simplify activity sleeping condition
It was confusing to check from root task. Since individual TaskFragment
can have resume-able activity, it should check the container visibility
rather than isFocusedRootTaskOnDisplay. So it won't miss the cases of
multiple-window mode.
Also reorder the cheaper conditions to front, so the methods can reduce
extra unnecessary execution.
Bug: 163976519
Flag: EXEMPT clean up legacy logic
Test: atest RootTaskTests#testShouldSleepActivities
Change-Id: Ib79aae0f445b6e7ecbb547a69f0eaa60357fe937
Diffstat (limited to 'api/coverage/tools')
0 files changed, 0 insertions, 0 deletions