Merge "Re-adding the task to recents once task affinity updated" into tm-dev

This commit is contained in:
Louis Chang
2022-04-21 09:47:02 +00:00
committed by Android (Google) Code Review

View File

@@ -1086,6 +1086,12 @@ class Task extends TaskFragment {
updateTaskDescription();
}
mSupportsPictureInPicture = info.supportsPictureInPicture();
// Re-adding the task to Recents once updated
if (inRecents) {
mTaskSupervisor.mRecentTasks.remove(this);
mTaskSupervisor.mRecentTasks.add(this);
}
}
/** Sets the original minimal width and height. */