summaryrefslogtreecommitdiff
path: root/core/java/android/view/SurfaceControlViewHost.java
diff options
context:
space:
mode:
authorEvan Rosky <erosky@google.com>2020-04-27 19:12:25 -0700
committerEvan Rosky <erosky@google.com>2020-04-28 09:39:37 -0700
commit128372810ddc47891b5cb93f6a61844bb474e425 (patch)
treeb66f80575b2491f3814daf12fe1aa64f860daf00 /core/java/android/view/SurfaceControlViewHost.java
parent046df72d9a8a7d5f6e6f255c313fc129db874f68 (diff)
Give Divider back its touch-region
Divider used to have a touch-region that allowed apps to receive touch events that would normally overlap the divider window as long as they weren't in the center. Re-introduce this by allowing windowless windows to pass through a touch-region. This region is always constrained to the window size to prevent security issues. Bug: 154840035 Test: Enter split and observe touch events away from center of divider. Change-Id: I85310c78beda7bd5574df78e2a83462e965d1154
Diffstat (limited to 'core/java/android/view/SurfaceControlViewHost.java')
-rw-r--r--core/java/android/view/SurfaceControlViewHost.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/view/SurfaceControlViewHost.java b/core/java/android/view/SurfaceControlViewHost.java
index 3d6da6f71b3f..7ec008c901bc 100644
--- a/core/java/android/view/SurfaceControlViewHost.java
+++ b/core/java/android/view/SurfaceControlViewHost.java
@@ -234,6 +234,14 @@ public class SurfaceControlViewHost {
}
/**
+ * @return the WindowlessWindowManager instance that this host is attached to.
+ * @hide
+ */
+ public @NonNull WindowlessWindowManager getWindowlessWM() {
+ return mWm;
+ }
+
+ /**
* @hide
*/
@TestApi