Fix bug where preview item icon fades/disappears for a frame during

- Remove fade since we no longer clip icons.
- Ensures a clean handoff between drag view and folder icon preview item.

Bug: 175329686
Test: create folder / add items to folder
Change-Id: Iaab592410734b0b5239dbbddbb9b2ed5a9f5d8b0
This commit is contained in:
Jon Miranda
2021-06-15 12:55:20 -07:00
committed by Jonathan Miranda
parent 1560f401ae
commit 9d41499a33
6 changed files with 12 additions and 15 deletions

View File

@@ -34,7 +34,6 @@ public class ClippedFolderIconLayoutRule {
float totalScale = scaleForItem(curNumItems);
float transX;
float transY;
float overlayAlpha = 0;
if (index == EXIT_INDEX) {
// 0 1 * <-- Exit position (row 0, col 2)
@@ -55,10 +54,9 @@ public class ClippedFolderIconLayoutRule {
transY = mTmpPoint[1];
if (params == null) {
params = new PreviewItemDrawingParams(transX, transY, totalScale, overlayAlpha);
params = new PreviewItemDrawingParams(transX, transY, totalScale);
} else {
params.update(transX, transY, totalScale);
params.overlayAlpha = overlayAlpha;
}
return params;
}