@@ -339,8 +339,9 @@ public SpaceNode reload(Context context, int preloadCount) {
339339
340340 // Create a new task
341341 Task task = new Task (t .persistentId , (t .id > -1 ), t .baseIntent , t .affiliatedTaskId ,
342- activityLabel , activityIcon , activityColor , t .userId , t .firstActiveTime ,
343- t .lastActiveTime , (i == (taskCount - 1 )), config .lockToAppEnabled );
342+ t .affiliatedTaskColor , activityLabel , activityIcon , activityColor , t .userId ,
343+ t .firstActiveTime , t .lastActiveTime , (i == (taskCount - 1 )),
344+ config .lockToAppEnabled );
344345
345346 // Preload the specified number of apps
346347 if (i >= (taskCount - preloadCount )) {
@@ -381,7 +382,7 @@ public SpaceNode reload(Context context, int preloadCount) {
381382 }
382383
383384 // Simulate the groupings that we describe
384- stack .createAffiliatedGroupings ();
385+ stack .createAffiliatedGroupings (config );
385386
386387 // Start the task loader and add all the tasks we need to load
387388 mLoader .start (context );
@@ -405,11 +406,11 @@ public static TaskStack getShallowTaskStack(SystemServicesProxy ssp) {
405406 ActivityInfo info = ssp .getActivityInfo (t .baseIntent .getComponent (), t .userId );
406407 if (info == null ) continue ;
407408
408- stack .addTask (new Task (t .persistentId , true , t .baseIntent , t .affiliatedTaskId , null ,
409- null , 0 , 0 , t .firstActiveTime , t .lastActiveTime , ( i == ( taskCount - 1 )) ,
410- config .lockToAppEnabled ));
409+ stack .addTask (new Task (t .persistentId , true , t .baseIntent , t .affiliatedTaskId ,
410+ t . affiliatedTaskColor , null , null , 0 , 0 , t .firstActiveTime , t .lastActiveTime ,
411+ ( i == ( taskCount - 1 )), config .lockToAppEnabled ));
411412 }
412- stack .createAffiliatedGroupings ();
413+ stack .createAffiliatedGroupings (config );
413414 return stack ;
414415 }
415416
0 commit comments