diff options
author | Riddle Hsu <riddlehsu@google.com> | 2020-04-29 19:15:33 +0800 |
---|---|---|
committer | Riddle Hsu <riddlehsu@google.com> | 2020-04-30 01:46:40 +0800 |
commit | f2ff25fbb132d484b7aa82fae7278074fe628e24 (patch) | |
tree | 824448ae7330d330a20da6c3148d0754657b4403 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 33cf9d091c61d47597ebb28b6def7cee6e99b2d2 (diff) |
Do not trim tasks when updating activity visibilities
When updating visibility of all activities, the state of activity
may be changed to resumed, and it will also be added to recents
task. If the max amount of task is reached, the inactive tasks will
be trimmed. So it is possible that the index of visibility-update
loop becomes out of bounds.
Though it can also be solved by checking the index every time, that
seems to be a bit unintuitive and waste. And skip trimming should
also reduce the side effect of visibility-update to focus on its
major functionality.
Fixes: 154809437
Fixes: 142627724
Test: RecentTasksTest#testAddTasksInVisibilityUpdate_expectNoTrim
Change-Id: Iba66f2e6ce0beae3ef1187549318ef8779154a3b
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions