OSDN Git Service

Don't set replacing flag in starting windows.
authorWale Ogunwale <ogunwale@google.com>
Tue, 5 Jan 2016 18:43:25 +0000 (10:43 -0800)
committerWale Ogunwale <ogunwale@google.com>
Tue, 5 Jan 2016 18:43:25 +0000 (10:43 -0800)
commit6d8e06bad4a8cda1893a67ee1014c39c93dca557
treef1a3742ba4d4c6aeadf710b6dea6b0335a0ea4f6
parent812a806c4d6d0713662de0954819deb0be739fb3
Don't set replacing flag in starting windows.

When ever an app is changing stacks we set replacing flag on all it's
windows. Starting windows can be part of an apps window list, but is
added by window manager not the app. So, when we set replacing flag
on the starting window it can cause the starting window never to be
cleaned up since we are expecting the client to replace it which will
never happen since it was added by window manager.
We shouldn't be setting replacing flag on starting windows since they
can never be replaced.

Bug: 26294740
Change-Id: I0a4f1e44188e96e73614130cbea02a3860850f58
services/core/java/com/android/server/wm/WindowState.java