mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
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:
committed by
Jonathan Miranda
parent
1560f401ae
commit
9d41499a33
@@ -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