summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/Folder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/launcher2/Folder.java')
-rw-r--r--src/com/android/launcher2/Folder.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/launcher2/Folder.java b/src/com/android/launcher2/Folder.java
index 76e9b357f..0b35acbb1 100644
--- a/src/com/android/launcher2/Folder.java
+++ b/src/com/android/launcher2/Folder.java
@@ -26,6 +26,7 @@ import android.animation.ValueAnimator;
import android.animation.ValueAnimator.AnimatorUpdateListener;
import android.content.Context;
import android.graphics.Rect;
+import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.MotionEvent;
@@ -81,6 +82,7 @@ public class Folder extends LinearLayout implements DragSource, OnItemLongClickL
private int mMaxCountY;
private Rect mNewSize = new Rect();
private ArrayList<View> mItemsInReadingOrder = new ArrayList<View>();
+ private Drawable mIconDrawable;
boolean mItemsInvalidated = false;
/**
@@ -144,6 +146,7 @@ public class Folder extends LinearLayout implements DragSource, OnItemLongClickL
mDragController.startDrag(v, this, item, DragController.DRAG_ACTION_COPY);
mDragItemPosition[0] = item.cellX;
mDragItemPosition[1] = item.cellY;
+ mIconDrawable = ((TextView) v).getCompoundDrawables()[1];
mInfo.remove(item);
mDragItem = item;
@@ -154,6 +157,10 @@ public class Folder extends LinearLayout implements DragSource, OnItemLongClickL
return true;
}
+ public Drawable getDragDrawable() {
+ return mIconDrawable;
+ }
+
/**
* We need to handle touch events to prevent them from falling through to the workspace below.
*/