diff options
| author | 2022-03-15 17:33:52 +0800 | |
|---|---|---|
| committer | 2022-03-16 10:35:46 +0800 | |
| commit | 963951144cbb3426590756a754fceb10d384f7ab (patch) | |
| tree | 52dea5363e47c586e88b102890b496d41db7880d /libs/androidfw/StringPool.cpp | |
| parent | 9675d3b8770ab86453567341f349e1831e829443 (diff) | |
Remove the failed-to-launch activity if attached to a parent
An exception was unexpectedly thrown while adding a child
activity to a task. That resulted in a abnormal state that
the activity is a child of the task while the
ActivityRecord#task was still null (which is updated
until #onParentChanged being called).
The CL removes the activity from its parent if any.
Bug: 224555550
Test: wm presubmit
Test: start a standard-launch-mode activity and put
it to background, kill its process and start the
activity again with FLAG_ACTIVITY_CLEAR_TOP flag.
Change-Id: I30ff04d961f3ca23cef89b6a5b6977860e9792d0
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions