Merge "Add Launcher.onDragStarted" into ub-now-mister-ugly

This commit is contained in:
Anjali Koppal
2014-03-17 23:22:57 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 0 deletions
+2
View 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.
+1
View 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);