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

Skip to content
Commit b5e2ecda authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent 03a6f8bf
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