OSDN Git Service

Add TYPE_INPUT_CONSUMER to the trusted overlay list.
authorMichael Wright <michaelwr@google.com>
Tue, 19 Sep 2017 19:19:39 +0000 (20:19 +0100)
committerMichael Wright <michaelwr@google.com>
Tue, 19 Sep 2017 19:19:39 +0000 (20:19 +0100)
Without this, PIP will break a bunch of apps since its frame fills the
whole screen, even though the application is restricted to its
stackbounds (which are the size of the touch region, not the frame
region).

Bug: 65606046
Test: None
Change-Id: Id7035dace30db37c5a58c66339d0749550a362e5

services/inputflinger/InputWindow.cpp
services/inputflinger/InputWindow.h

index b54752b..3ae7972 100644 (file)
@@ -49,7 +49,8 @@ bool InputWindowInfo::isTrustedOverlay() const {
             || layoutParamsType == TYPE_NAVIGATION_BAR_PANEL
             || layoutParamsType == TYPE_SECURE_SYSTEM_OVERLAY
             || layoutParamsType == TYPE_DOCK_DIVIDER
-            || layoutParamsType == TYPE_ACCESSIBILITY_OVERLAY;
+            || layoutParamsType == TYPE_ACCESSIBILITY_OVERLAY
+            || layoutParamsType == TYPE_INPUT_CONSUMER;
 }
 
 bool InputWindowInfo::supportsSplitTouch() const {
index 610290b..9eb2798 100644 (file)
@@ -101,6 +101,7 @@ struct InputWindowInfo {
         TYPE_NAVIGATION_BAR     = FIRST_SYSTEM_WINDOW+19,
         TYPE_VOLUME_OVERLAY = FIRST_SYSTEM_WINDOW+20,
         TYPE_BOOT_PROGRESS = FIRST_SYSTEM_WINDOW+21,
+        TYPE_INPUT_CONSUMER = FIRST_SYSTEM_WINDOW+22,
         TYPE_NAVIGATION_BAR_PANEL = FIRST_SYSTEM_WINDOW+24,
         TYPE_MAGNIFICATION_OVERLAY = FIRST_SYSTEM_WINDOW+27,
         TYPE_ACCESSIBILITY_OVERLAY = FIRST_SYSTEM_WINDOW+32,