OSDN Git Service

Only create surface when showing window if it destroys it when hiding.
authorFilip Gruszczynski <gruszczy@google.com>
Wed, 25 Nov 2015 18:51:25 +0000 (10:51 -0800)
committerFilip Gruszczynski <gruszczy@google.com>
Wed, 25 Nov 2015 18:51:25 +0000 (10:51 -0800)
commit55149303d14adb242f29bf4e91e9428affff9628
tree3b4e696fb29523b49e8a60a4c60a247b305538a6
parente38bdf6bf79ff8d536d6909ef0b595d6dc3d56ee
Only create surface when showing window if it destroys it when hiding.

The visibility of a window might be toggled to true even when it doesn't
have a surface, which is a case for windows under the lock screen. We
can't blindly create surfaces in that case, but only do it for the
windows that destroy their surfaces when they are hidden.

Bug: 25879215
Change-Id: I6cf2c6810ce02fba0d2207a56de9924c0270dfeb
services/core/java/com/android/server/input/InputWindowHandle.java
services/core/java/com/android/server/wm/WindowState.java