Merge "Avoid duplication of AppWindowToken in created Task"

This commit is contained in:
Craig Mautner
2014-03-04 15:19:17 +00:00
committed by Gerrit Code Review

View File

@@ -3480,8 +3480,9 @@ public class WindowManagerService extends IWindowManager.Stub
Task newTask = mTaskIdToTask.get(groupId);
if (newTask == null) {
newTask = createTask(groupId, oldTask.mStack.mStackId, oldTask.mUserId, atoken);
} else {
newTask.mAppTokens.add(atoken);
}
newTask.mAppTokens.add(atoken);
}
}