From 9830a4ac42c9e16db91d1de6120cc2eb613fc946 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Mon, 5 Oct 2009 12:44:13 -0700 Subject: Fix issue #2161169: onStop not being called. There was a bug with the starting window where it could be added to the app window list twice, so the buddy list would end up with one left over after all was done. This would result in visibility changes not being delivered to it correctly, delaying the dispatch of onStop. Change-Id: If1993eaf9cfbba1f523ce5aaa478be0239d0c7db --- services/java/com/android/server/WindowManagerService.java | 1 - 1 file changed, 1 deletion(-) diff --git a/services/java/com/android/server/WindowManagerService.java b/services/java/com/android/server/WindowManagerService.java index ed6476697c28..67b8a855ed6b 100644 --- a/services/java/com/android/server/WindowManagerService.java +++ b/services/java/com/android/server/WindowManagerService.java @@ -3218,7 +3218,6 @@ public class WindowManagerService extends IWindowManager.Stub ttoken.windows.remove(startingWindow); ttoken.allAppWindows.remove(startingWindow); addWindowToListInOrderLocked(startingWindow, true); - wtoken.allAppWindows.add(startingWindow); // Propagate other interesting state between the // tokens. If the old token is displayed, we should -- cgit v1.2.3-59-g8ed1b