summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/WindowManagerService.java
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2011-01-28 17:54:12 -0800
committerChristopher Tate <ctate@google.com>2011-01-28 17:54:12 -0800
commit251602f410aaecc482a13d12984e67e3ddc1ef9c (patch)
tree0eb57b451ffad7da5c32451daf34eef8923802b2 /services/java/com/android/server/WindowManagerService.java
parente42d0dd741620fc74fbf4f46c65b8ff945edce66 (diff)
Enable global (cross-application) drag/drop
Also adds a new flag constant, View.DRAG_FLAG_GLOBAL, which indicates that the drag operation should be allowed to propagate the drag outside the originating app. When this flag is specified, all visible windows will be notified about the ongoing drag. Bug 3322724 Change-Id: Iaa3412a97f83f4e763019c9a03b5f09ebf75453f
Diffstat (limited to 'services/java/com/android/server/WindowManagerService.java')
-rw-r--r--services/java/com/android/server/WindowManagerService.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/java/com/android/server/WindowManagerService.java b/services/java/com/android/server/WindowManagerService.java
index fcc8e6937603..6b1dd34acad8 100644
--- a/services/java/com/android/server/WindowManagerService.java
+++ b/services/java/com/android/server/WindowManagerService.java
@@ -5804,8 +5804,7 @@ public class WindowManagerService extends IWindowManager.Stub
outSurface.copyFrom(surface);
final IBinder winBinder = window.asBinder();
token = new Binder();
- // TODO: preserve flags param in DragState
- mDragState = new DragState(token, surface, 0, winBinder);
+ mDragState = new DragState(token, surface, flags, winBinder);
mDragState.mSurface = surface;
token = mDragState.mToken = new Binder();