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:
1 parent
1560f401ae
commit
9d41499a33
6 files changed
+12
-15
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user