Merge "Initialize launchCookie in fillTaskInfo."
This commit is contained in:
committed by
Android (Google) Code Review
commit
849692f86d
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user