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

This commit is contained in:
Adam Cohen
2011-09-30 20:09:57 -07:00
committed by Android (Google) Code Review
2 changed files with 11 additions and 0 deletions
@@ -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();