summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Vaibhav Devmurari <vdevmurari@google.com> 2023-03-16 13:50:21 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-03-16 13:50:21 +0000
commit27c67a2c3bbdfb038ae90d28a85629d49b1c4e88 (patch)
tree9f8fd9311a87f43c0a80f296343e3f0975746cc7
parent24fa99c448c74c60ce742f619f9a53439bbc7783 (diff)
parente7d89deeb70b56cf2e616ac5142b482ed2fd53b3 (diff)
Merge "Fix: Global DnD not working" into udc-dev
-rw-r--r--services/core/java/com/android/server/wm/DragState.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/services/core/java/com/android/server/wm/DragState.java b/services/core/java/com/android/server/wm/DragState.java
index 0b28ba2bb146..bc9efc88ecae 100644
--- a/services/core/java/com/android/server/wm/DragState.java
+++ b/services/core/java/com/android/server/wm/DragState.java
@@ -377,15 +377,10 @@ class DragState {
mDragWindowHandle.ownerUid = MY_UID;
mDragWindowHandle.scaleFactor = 1.0f;
- // InputConfig.PREVENT_SPLITTING: To keep the default behavior of this window to be
- // focusable, which allows the system to consume keys when dragging is active. This can
- // also be used to modify the drag state on key press. For example, cancel drag on
- // escape key.
// InputConfig.TRUSTED_OVERLAY: To not block any touches while D&D ongoing and allowing
// touches to pass through to windows underneath. This allows user to interact with the
// UI to navigate while dragging.
- mDragWindowHandle.inputConfig =
- InputConfig.PREVENT_SPLITTING | InputConfig.TRUSTED_OVERLAY;
+ mDragWindowHandle.inputConfig = InputConfig.TRUSTED_OVERLAY;
// The drag window cannot receive new touches.
mDragWindowHandle.touchableRegion.setEmpty();