diff options
author | Michael Jurka <mikejurka@google.com> | 2010-12-20 16:06:10 -0800 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2010-12-20 16:53:26 -0800 |
commit | b8e14479da7209ca811a753b3256fe4a0b49a873 (patch) | |
tree | 022bdba062825d1b115b984789fd9146e76dad78 /src/com/android/launcher2/IconDropTarget.java | |
parent | bb6e05bca62d399c5c81a7f57d5b167fce207fee (diff) | |
download | android_packages_apps_Trebuchet-b8e14479da7209ca811a753b3256fe4a0b49a873.tar.gz android_packages_apps_Trebuchet-b8e14479da7209ca811a753b3256fe4a0b49a873.tar.bz2 android_packages_apps_Trebuchet-b8e14479da7209ca811a753b3256fe4a0b49a873.zip |
Don't show application info icon on workspace
Change-Id: I79e59211633609f4bd13e91a6c745ff28a309e2e
Diffstat (limited to 'src/com/android/launcher2/IconDropTarget.java')
-rw-r--r-- | src/com/android/launcher2/IconDropTarget.java | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/com/android/launcher2/IconDropTarget.java b/src/com/android/launcher2/IconDropTarget.java index ec08c1e81..bfc46cf42 100644 --- a/src/com/android/launcher2/IconDropTarget.java +++ b/src/com/android/launcher2/IconDropTarget.java @@ -35,8 +35,8 @@ public class IconDropTarget extends ImageView implements DropTarget, DragControl protected Launcher mLauncher; /** - * If true, this View responsible for managing its own visibility, and that of its handle. - * This is generally the case, but it will be set to false when this is part of the + * If true, this View responsible for managing its own visibility, and that of its overlapping + * views. This is generally the case, but it will be set to false when this is part of the * Contextual Action Bar. */ protected boolean mDragAndDropEnabled; @@ -44,8 +44,8 @@ public class IconDropTarget extends ImageView implements DropTarget, DragControl /** Whether this drop target is active for the current drag */ protected boolean mActive; - /** The view that this view should appear in the place of. */ - protected View mHandle = null; + /** The views that this view should appear in the place of. */ + protected View[] mOverlappingViews = null; /** The paint applied to the drag view on hover */ protected final Paint mHoverPaint = new Paint(); @@ -73,8 +73,12 @@ public class IconDropTarget extends ImageView implements DropTarget, DragControl mLauncher = launcher; } - void setHandle(View view) { - mHandle = view; + void setOverlappingView(View view) { + mOverlappingViews = new View[] { view }; + } + + void setOverlappingViews(View[] views) { + mOverlappingViews = views; } void setDragAndDropEnabled(boolean enabled) { |