Cleaning up folder icon drawing
-> Tracking individual drawing parms for each item -> This enables animation of the preview items as the preview changes Change-Id: I1b8f650cb28dc09cfb921bbdc93f2a3db61178fd
This commit is contained in:
1 parent
10a0e8a5c6
commit
4f8071b759
5 files changed
+207
-92
No files matched your search
@@ -73,9 +73,7 @@ public class StackFolderIconLayoutRule implements FolderIcon.PreviewLayoutRule {
|
||||
if (params == null) {
|
||||
params = new PreviewItemDrawingParams(transX, transY, totalScale, overlayAlpha);
|
||||
} else {
|
||||
params.transX = transX;
|
||||
params.transY = transY;
|
||||
params.scale = totalScale;
|
||||
params.update(transX, transY, totalScale);
|
||||
params.overlayAlpha = overlayAlpha;
|
||||
}
|
||||
return params;
|
||||
|
||||
Reference in new issue
Block a user