commit | 62d18edcc74ce96e2955048f5e0fc0ce3e4ec275 | [log] [tgz] |
---|---|---|
author | Anjali Koppal <akoppal@google.com> | Mon Mar 10 17:04:03 2014 -0700 |
committer | Anjali Koppal <akoppal@google.com> | Mon Mar 17 15:06:41 2014 -0700 |
tree | 67e86290f6fe2e5bb08af28b1e4b9ca177661344 | |
parent | 5ad4484df3e477f9d8819605629b6e75a42e31ed [diff] |
Add Launcher.onDragStarted Change-Id: Iac59685211905580460d0a0a16d9c7f00c61fac9
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index f1ce235..c18574a 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java
@@ -2596,6 +2596,8 @@ } } + public void onDragStarted(View view) {} + /** * Called when the user stops interacting with the launcher. * This implies that the user is now on the homescreen and is not doing housekeeping.
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java index a22b025..1732e37 100644 --- a/src/com/android/launcher3/Workspace.java +++ b/src/com/android/launcher3/Workspace.java
@@ -2598,6 +2598,7 @@ } public void beginDragShared(View child, DragSource source) { + mLauncher.onDragStarted(child); // The drag bitmap follows the touch point around on the screen final Bitmap b = createDragBitmap(child, new Canvas(), DRAG_BITMAP_PADDING);