diff options
author | Joe Onorato <joeo@android.com> | 2009-08-04 16:04:30 -0400 |
---|---|---|
committer | Joe Onorato <joeo@android.com> | 2009-08-06 12:45:43 -0700 |
commit | 00acb123c5100f06b8e89e8ec8978ebafc6f6d26 (patch) | |
tree | 77c09f4bcd3174e687ce4d5f31a0f89a55e52bb8 /src/com/android/launcher2/FolderIcon.java | |
parent | 17721426111214db82ea00abd8bfafc66e65fe71 (diff) | |
download | android_packages_apps_Trebuchet-00acb123c5100f06b8e89e8ec8978ebafc6f6d26.tar.gz android_packages_apps_Trebuchet-00acb123c5100f06b8e89e8ec8978ebafc6f6d26.tar.bz2 android_packages_apps_Trebuchet-00acb123c5100f06b8e89e8ec8978ebafc6f6d26.zip |
Move the drag thing into its own window that goes around on top of everything else.
Diffstat (limited to 'src/com/android/launcher2/FolderIcon.java')
-rw-r--r-- | src/com/android/launcher2/FolderIcon.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/com/android/launcher2/FolderIcon.java b/src/com/android/launcher2/FolderIcon.java index 1531538fb..85fc3a754 100644 --- a/src/com/android/launcher2/FolderIcon.java +++ b/src/com/android/launcher2/FolderIcon.java @@ -62,7 +62,7 @@ public class FolderIcon extends BubbleTextView implements DropTarget { } public boolean acceptDrop(DragSource source, int x, int y, int xOffset, int yOffset, - Object dragInfo) { + DragView dragView, Object dragInfo) { final ItemInfo item = (ItemInfo) dragInfo; final int itemType = item.itemType; return (itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION || @@ -70,11 +70,13 @@ public class FolderIcon extends BubbleTextView implements DropTarget { && item.container != mInfo.id; } - public Rect estimateDropLocation(DragSource source, int x, int y, int xOffset, int yOffset, Object dragInfo, Rect recycle) { + public Rect estimateDropLocation(DragSource source, int x, int y, int xOffset, int yOffset, + DragView dragView, Object dragInfo, Rect recycle) { return null; } - public void onDrop(DragSource source, int x, int y, int xOffset, int yOffset, Object dragInfo) { + public void onDrop(DragSource source, int x, int y, int xOffset, int yOffset, + DragView dragView, Object dragInfo) { final ApplicationInfo item = (ApplicationInfo) dragInfo; // TODO: update open folder that is looking at this data mInfo.add(item); @@ -82,16 +84,16 @@ public class FolderIcon extends BubbleTextView implements DropTarget { } public void onDragEnter(DragSource source, int x, int y, int xOffset, int yOffset, - Object dragInfo) { + DragView dragView, Object dragInfo) { setCompoundDrawablesWithIntrinsicBounds(null, mOpenIcon, null, null); } public void onDragOver(DragSource source, int x, int y, int xOffset, int yOffset, - Object dragInfo) { + DragView dragView, Object dragInfo) { } public void onDragExit(DragSource source, int x, int y, int xOffset, int yOffset, - Object dragInfo) { + DragView dragView, Object dragInfo) { setCompoundDrawablesWithIntrinsicBounds(null, mCloseIcon, null, null); } } |