mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Move inner classes out of FolderIcon.
The goal is to eventually move all of the PreviewBackground and Preview Item drawing out of the FolderIcon class. Bug: 36022592 Change-Id: Ie0552bb4ca8a7e232c1c454a23558940e9394a14
This commit is contained in:
@@ -29,8 +29,8 @@ public class ClippedFolderIconLayoutRule implements FolderIcon.PreviewLayoutRule
|
||||
}
|
||||
|
||||
@Override
|
||||
public FolderIcon.PreviewItemDrawingParams computePreviewItemDrawingParams(int index,
|
||||
int curNumItems, FolderIcon.PreviewItemDrawingParams params) {
|
||||
public PreviewItemDrawingParams computePreviewItemDrawingParams(int index, int curNumItems,
|
||||
PreviewItemDrawingParams params) {
|
||||
|
||||
float totalScale = scaleForItem(index, curNumItems);
|
||||
float transX;
|
||||
@@ -47,7 +47,7 @@ public class ClippedFolderIconLayoutRule implements FolderIcon.PreviewLayoutRule
|
||||
}
|
||||
|
||||
if (params == null) {
|
||||
params = new FolderIcon.PreviewItemDrawingParams(transX, transY, totalScale, overlayAlpha);
|
||||
params = new PreviewItemDrawingParams(transX, transY, totalScale, overlayAlpha);
|
||||
} else {
|
||||
params.update(transX, transY, totalScale);
|
||||
params.overlayAlpha = overlayAlpha;
|
||||
|
||||
Reference in New Issue
Block a user