diff options
| author | Daichi Hirono <hirono@google.com> | 2017-03-31 14:30:41 +0900 |
|---|---|---|
| committer | Daichi Hirono <hirono@google.com> | 2017-04-03 14:43:45 +0900 |
| commit | b8aeb6f12e51e6d3ecf6a5f40c953dc76ff64884 (patch) | |
| tree | 74cb4f9a3bb602da0f6e2b946e7c4b78a68875d4 /docs/html/sdk/api_diff/15/changes | |
| parent | 1ce83f009ea6d51b7c03772343f54827c7dd9dd5 (diff) | |
Stop restoring tasks added before recent is loaded
Previously we can have duplicated tasks sharing the same taskId in
RecentTasks due to race condition.
1. A task is created before RecentTasks#loadUserRecentsLocked
(e.g. through adb)
2. RecentTasks#notifyTaskPersisterLocked eventually writes the task file
to storage (e.g. XX_task.xml)
3. RecentTasks#loadUserRecentsLocked tries to recover XX_task.xml while
the task has already been added to RecentTasks.
To fix the issue, the CL stops restoring tasks added before recent is
loaded.
Bug: 36796576
Test: Build and boot Android, check the recent is correctly loaded
Change-Id: Ib57977f2a0a63f7bf7db4d3fd70bdcc359e76f7d
Diffstat (limited to 'docs/html/sdk/api_diff/15/changes')
0 files changed, 0 insertions, 0 deletions
