Add folder shapes for corresponding icon shapes
Bug: 372886883 Bug: 389329983 Test: Presubmit && IconShapesProviderTest Flag: com.android.launcher3.enable_launcher_icon_shapes Change-Id: I46b27b391fef5f379c65d81816353c93f56f2e1d
This commit is contained in:
1 parent
4c261f7343
commit
fcb3d2ec38
9 files changed
+288
-99
No files matched your search
@@ -17,7 +17,6 @@
|
||||
package com.android.launcher3.folder;
|
||||
|
||||
import static com.android.launcher3.Flags.enableCursorHoverStates;
|
||||
import static com.android.launcher3.folder.ClippedFolderIconLayoutRule.ICON_OVERLAP_FACTOR;
|
||||
import static com.android.launcher3.folder.ClippedFolderIconLayoutRule.MAX_NUM_ITEMS_IN_PREVIEW;
|
||||
import static com.android.launcher3.folder.FolderGridOrganizer.createFolderGridOrganizer;
|
||||
import static com.android.launcher3.folder.PreviewItemManager.INITIAL_ITEM_ANIMATION_DURATION;
|
||||
@@ -246,7 +245,8 @@ public class FolderIcon extends FrameLayout implements FolderListener, FloatingI
|
||||
mPreviewItemManager.recomputePreviewDrawingParams();
|
||||
mBackground.getBounds(outBounds);
|
||||
// The preview items go outside of the bounds of the background.
|
||||
Utilities.scaleRectAboutCenter(outBounds, ICON_OVERLAP_FACTOR);
|
||||
Utilities.scaleRectAboutCenter(outBounds,
|
||||
ClippedFolderIconLayoutRule.getIconOverlapFactor());
|
||||
}
|
||||
|
||||
public float getBackgroundStrokeWidth() {
|
||||
|
||||
Reference in new issue
Block a user