diff options
| author | 2020-05-04 13:53:00 -0400 | |
|---|---|---|
| committer | 2020-05-07 21:58:36 +0000 | |
| commit | 466cdea8d2de302f6be4d9f59816dd2c6078decf (patch) | |
| tree | 6d7e5ac12712d991e1c06b7e081e58675e5a4f5f /libs/input/InputWindow.cpp | |
| parent | 7e838c2377a42907783d9de7aaa6e16b7d085a3f (diff) | |
Make TYPE_TRUSTED_APPLICATION_OVERLAY a trusted overlay.
Test: accept a permission dialog while bubbles are there too
Fixes: 149320322
Change-Id: I3767e2d93d0bcb216483a12d94ffb13ca0051c7e
Diffstat (limited to 'libs/input/InputWindow.cpp')
| -rw-r--r-- | libs/input/InputWindow.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/input/InputWindow.cpp b/libs/input/InputWindow.cpp index b27b050d28..85a2015e43 100644 --- a/libs/input/InputWindow.cpp +++ b/libs/input/InputWindow.cpp @@ -42,6 +42,7 @@ bool InputWindowInfo::frameContainsPoint(int32_t x, int32_t y) const { && y >= frameTop && y < frameBottom; } +// TODO(b/155781676): Remove and replace call points with trustedOverlay when that is ready. bool InputWindowInfo::isTrustedOverlay() const { return layoutParamsType == TYPE_INPUT_METHOD || layoutParamsType == TYPE_INPUT_METHOD_DIALOG || layoutParamsType == TYPE_MAGNIFICATION_OVERLAY || layoutParamsType == TYPE_STATUS_BAR || @@ -51,7 +52,8 @@ bool InputWindowInfo::isTrustedOverlay() const { layoutParamsType == TYPE_SECURE_SYSTEM_OVERLAY || layoutParamsType == TYPE_DOCK_DIVIDER || layoutParamsType == TYPE_ACCESSIBILITY_OVERLAY || - layoutParamsType == TYPE_INPUT_CONSUMER; + layoutParamsType == TYPE_INPUT_CONSUMER || + layoutParamsType == TYPE_TRUSTED_APPLICATION_OVERLAY; } bool InputWindowInfo::supportsSplitTouch() const { |