Skip to content
Commit 34976aa3 authored by Chilun's avatar Chilun
Browse files

Add restored tasks with persisted activity to hierarchy

The Activity with persistAcrossReboots mode will be restored and added
into Task while rebooting. However, after the WM hierarchy is unified,
adding Activity to Task will trigger a series of events, such as
relayout and create surface control, which require Task in the
hierarchy. This causes the restore to fail.

The solution here is to add the restored task to the hierarchy as early
as the point of restoration.

Bug: 178782815
Test: atest TaskPersisterTest TaskRecordTests
Change-Id: I604d6c31f49cff959609373f85d177eadebb062b
parent 304d3a07
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment