Merge "Do not attach the added recent task to TDA"
This commit is contained in:
@@ -3306,9 +3306,8 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final ActivityStack stack = r.getRootTask();
|
final ActivityStack stack = r.getRootTask();
|
||||||
final Task task = stack.getDisplayArea().createStack(stack.getWindowingMode(),
|
final Task task = new ActivityStack(this, stack.getDisplayArea().getNextStackId(),
|
||||||
stack.getActivityType(), !ON_TOP, ainfo, intent,
|
stack.getActivityType(), ainfo, intent, false /* createdByOrganizer */);
|
||||||
false /* createdByOrganizer */);
|
|
||||||
|
|
||||||
if (!mRecentTasks.addToBottom(task)) {
|
if (!mRecentTasks.addToBottom(task)) {
|
||||||
// The app has too many tasks already and we can't add any more
|
// The app has too many tasks already and we can't add any more
|
||||||
|
|||||||
Reference in New Issue
Block a user