Merge "Fixing issue where folder icon shows holographic outline."

This commit is contained in:
Adam Cohen authored and Android (Google) Code Review committed 2011-09-30 20:09:57 -07:00
commit 79568720bf
2 files changed
+11

No files matched your search

@@ -256,6 +256,11 @@ public class BubbleTextView extends TextView {
}
}
void clearPressedOrFocusedBackground() {
mPressedOrFocusedBackground = null;
setCellLayoutPressedOrFocusedIcon();
}
Bitmap getPressedOrFocusedBackground() {
return mPressedOrFocusedBackground;
}
+6
View File
@@ -1882,6 +1882,12 @@ public class Workspace extends SmoothPagedView
dragRect = new Rect(0, 0, child.getWidth(), previewSize);
}
// Clear the pressed state if necessary
if (child instanceof BubbleTextView) {
BubbleTextView icon = (BubbleTextView) child;
icon.clearPressedOrFocusedBackground();
}
mDragController.startDrag(b, dragLayerX, dragLayerY, source, child.getTag(),
DragController.DRAG_ACTION_MOVE, dragRect);
b.recycle();