Always add the task to the recent task list when starting
- Currently, when creating a new task as a part of starting an activity, we sometimes don't update the recent tasks list until the next activity state is resumed. This can lead to issues where the set of recent tasks is wrong if the task list is fetched before the activity state changes (due to the app being slow or another activity launched immediately afterwards causing the first activity's state to skip resume and go to stop). For consistency, we can just always add the task to the recent task list in all cases. Bug: 141580748 Test: atest ActivityStarterTests Test: atest RecentTasksTest Change-Id: I61b0c065caf3b775e64190f92f2c8a4471d12b08
Loading
Please register or sign in to comment