summaryrefslogtreecommitdiffstats
path: root/services/core/java
diff options
context:
space:
mode:
authorCraig Mautner <cmautner@google.com>2014-03-04 17:55:47 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-04 17:55:47 +0000
commit2e416f16745c55b4957611cb3fa5acc82f247092 (patch)
tree301d58791159dae4bb0634aaf29bb65dac9f9429 /services/core/java
parentd5273da95b333b018c0d13bd6917a1e8a769f064 (diff)
parentf716acc66f2c30503f8c10f57ecba3d597107801 (diff)
downloadframeworks_base-2e416f16745c55b4957611cb3fa5acc82f247092.zip
frameworks_base-2e416f16745c55b4957611cb3fa5acc82f247092.tar.gz
frameworks_base-2e416f16745c55b4957611cb3fa5acc82f247092.tar.bz2
am f716acc6: am 80b13579: am 7a93aa2f: am a0b4d0ce: Merge "Avoid duplication of AppWindowToken in created Task"
* commit 'f716acc66f2c30503f8c10f57ecba3d597107801': Avoid duplication of AppWindowToken in created Task
Diffstat (limited to 'services/core/java')
-rw-r--r--services/core/java/com/android/server/wm/WindowManagerService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/wm/WindowManagerService.java b/services/core/java/com/android/server/wm/WindowManagerService.java
index 6e1724a..c006613 100644
--- a/services/core/java/com/android/server/wm/WindowManagerService.java
+++ b/services/core/java/com/android/server/wm/WindowManagerService.java
@@ -3522,8 +3522,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);
}
}