diff options
| author | Riddle Hsu <riddlehsu@google.com> | 2021-01-15 15:46:36 +0800 |
|---|---|---|
| committer | Riddle Hsu <riddlehsu@google.com> | 2021-01-18 12:00:16 +0800 |
| commit | ed592f8b271baf8656d237e6bba0b3b26835c3bb (patch) | |
| tree | c179496667be15a89ca07a6d49c6c9abec52b91c /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java | |
| parent | 839c1cd57247a93fb776a39f4004be9c39f49d9b (diff) | |
Destroy activity if task is removed directly
Otherwise the activity is unreachable from hierarchy but
WindowProcessController still references to the activity.
- Task#removeImmediately will go super.removeImmediately so
its children's removeImmediately will also be called. That
is the place to destroy activity.
- Avoid reentrant of Task#removeImmediately because it is
confusing to see multiple wm_task_removed with different
reasons, e.g. [deleteRootTask, setTaskOrganizer] and
[removeTask, cleanUpResourcesForDestroy]. And it also
eliminates duplicated invocation of super.removeImmediately.
- Add validation for setLaunchRoot.
Bug: 177633638
Test: ActivityRecordTests#testRemoveImmediately
Change-Id: I762f0a720d1709bb72deaacd857d5e79ce48d1b2
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions
