commit | 8b096b2d952938ab386fab60ff25303d683a05bf | [log] [tgz] |
---|---|---|
author | Garfield Tan <xutan@google.com> | Tue Jan 07 14:55:20 2020 -0800 |
committer | Garfield Tan <xutan@google.com> | Tue Jan 21 12:18:27 2020 -0800 |
tree | 38e8ed3756f96e02151918eeac71dba7918a5d12 | |
parent | 2c12aac7c5325330f3f67be54d0e7d55a0d5044f [diff] |
Pass activity stack when saving launch params. When setParent() is called on a task with null as a step to remove it mParent in WindowContainer is already set to null before onParentChanged() is called. Therefore getStack() returns null and we'll get an NPE. Thus pass ActivityStack into it to avoid that. Bug: 147301825 Test: NPE disappears when a task is closed. Test: atest TestRecordTest Change-Id: I94e81f7f22d348b73eac70edd0998be721ad2597