Merge "Fixing issue where folder icon shows holographic outline."
This commit is contained in:
@@ -256,6 +256,11 @@ public class BubbleTextView extends TextView {
|
||||
}
|
||||
}
|
||||
|
||||
void clearPressedOrFocusedBackground() {
|
||||
mPressedOrFocusedBackground = null;
|
||||
setCellLayoutPressedOrFocusedIcon();
|
||||
}
|
||||
|
||||
Bitmap getPressedOrFocusedBackground() {
|
||||
return mPressedOrFocusedBackground;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user