OSDN Git Service

Add Launcher.onDragStarted
authorAnjali Koppal <akoppal@google.com>
Tue, 11 Mar 2014 00:04:03 +0000 (17:04 -0700)
committerAnjali Koppal <akoppal@google.com>
Mon, 17 Mar 2014 22:06:41 +0000 (15:06 -0700)
Change-Id: Iac59685211905580460d0a0a16d9c7f00c61fac9

src/com/android/launcher3/Launcher.java
src/com/android/launcher3/Workspace.java

index f1ce235..c18574a 100644 (file)
@@ -2596,6 +2596,8 @@ public class Launcher extends Activity
         }
     }
 
+    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.
index a22b025..1732e37 100644 (file)
@@ -2598,6 +2598,7 @@ public class Workspace extends SmoothPagedView
     }
 
     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);