Merge "Initialize launchCookie in fillTaskInfo."

This commit is contained in:
TreeHugger Robot
2021-01-15 02:31:53 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 0 deletions

View File

@@ -4093,6 +4093,7 @@ class Task extends WindowContainer<WindowContainer> {
info.topActivityInfo = mReuseActivitiesReport.top != null
? mReuseActivitiesReport.top.info
: null;
info.launchCookies.clear();
info.addLaunchCookie(mLaunchCookie);
forAllActivities(r -> {
info.addLaunchCookie(r.mLaunchCookie);

View File

@@ -555,6 +555,7 @@ class TaskOrganizerController extends ITaskOrganizerController.Stub {
changed = (cfgChanges & REPORT_CONFIGS) != 0;
}
if (!(changed || force)) {
// mTmpTaskInfo will be reused next time.
return;
}
final RunningTaskInfo newInfo = mTmpTaskInfo;