OSDN Git Service

libsurfaceflinger: fix screenshot permission check
authorChia-I Wu <olv@google.com>
Mon, 7 Aug 2017 22:27:49 +0000 (15:27 -0700)
committerChia-I Wu <olv@google.com>
Mon, 7 Aug 2017 22:33:55 +0000 (15:33 -0700)
commitfc0b9110901cd9814a83c574fdaf5c4428838424
tree51d7deb2233103db979a2bdd1036f62f6773a89d
parent8f09b6abecbd8bf0e00c72b5eab6dd743e0f35ac
libsurfaceflinger: fix screenshot permission check

Fix the logic for layers we check isSecure or isVisible for.  It was
regressed by my previous change to support
WINDOW_TYPE_DONT_SCREENSHOT.

Bug: 63311708
Bug: 62656774
Test: CTS
Change-Id: I7768cb590014cc610ec564847958bbd98742c277
services/surfaceflinger/SurfaceFlinger.cpp