Merge "Update folder previews to new specs" into main

This commit is contained in:
Charlie Anderson authored and Android (Google) Code Review committed 2025-04-04 00:02:52 -07:00
commit e3defaa8e6
10 files changed
+63 -125

No files matched your search

+2 -2
View File
@@ -25,6 +25,7 @@ import static com.android.launcher3.InvariantDeviceProfile.INDEX_TWO_PANEL_LANDS
import static com.android.launcher3.InvariantDeviceProfile.INDEX_TWO_PANEL_PORTRAIT;
import static com.android.launcher3.Utilities.dpiFromPx;
import static com.android.launcher3.Utilities.pxFromSp;
import static com.android.launcher3.folder.ClippedFolderIconLayoutRule.ICON_OVERLAP_FACTOR;
import static com.android.launcher3.icons.IconNormalizer.ICON_VISIBLE_AREA_FACTOR;
import static com.android.launcher3.testing.shared.ResourceUtils.INVALID_RESOURCE_HANDLE;
import static com.android.launcher3.testing.shared.ResourceUtils.pxFromDp;
@@ -52,7 +53,6 @@ import androidx.core.content.res.ResourcesCompat;
import com.android.launcher3.CellLayout.ContainerType;
import com.android.launcher3.DevicePaddings.DevicePadding;
import com.android.launcher3.folder.ClippedFolderIconLayoutRule;
import com.android.launcher3.graphics.ThemeManager;
import com.android.launcher3.icons.DotRenderer;
import com.android.launcher3.model.data.ItemInfo;
@@ -1227,7 +1227,7 @@ public class DeviceProfile {
}
private int getIconSizeWithOverlap(int iconSize) {
return (int) Math.ceil(iconSize * ClippedFolderIconLayoutRule.getIconOverlapFactor());
return (int) Math.ceil(iconSize * ICON_OVERLAP_FACTOR);
}
/**