Loading iconloaderlib/src/com/android/launcher3/icons/BaseIconFactory.java +1 −0 Original line number Diff line number Diff line Loading @@ -419,6 +419,7 @@ public class BaseIconFactory implements AutoCloseable { mOldBounds.set(icon.getBounds()); if (icon instanceof AdaptiveIconDrawable) { // We are ignoring KEY_SHADOW_DISTANCE because regular icons ignore this at the moment b/298203449 int offset = Math.max((int) Math.ceil(BLUR_FACTOR * size), Math.round(size * (1 - scale) / 2)); // b/211896569: AdaptiveIconDrawable do not work properly for non top-left bounds Loading iconloaderlib/src/com/android/launcher3/icons/ShadowGenerator.java +2 −1 Original line number Diff line number Diff line Loading @@ -109,7 +109,8 @@ public class ShadowGenerator { scale = (HALF_DISTANCE - BLUR_FACTOR) / (HALF_DISTANCE - minSide); } float bottomSpace = BLUR_FACTOR + KEY_SHADOW_DISTANCE; // We are ignoring KEY_SHADOW_DISTANCE because regular icons ignore this at the moment b/298203449 float bottomSpace = BLUR_FACTOR; if (bounds.bottom < bottomSpace) { scale = Math.min(scale, (HALF_DISTANCE - bottomSpace) / (HALF_DISTANCE - bounds.bottom)); Loading Loading
iconloaderlib/src/com/android/launcher3/icons/BaseIconFactory.java +1 −0 Original line number Diff line number Diff line Loading @@ -419,6 +419,7 @@ public class BaseIconFactory implements AutoCloseable { mOldBounds.set(icon.getBounds()); if (icon instanceof AdaptiveIconDrawable) { // We are ignoring KEY_SHADOW_DISTANCE because regular icons ignore this at the moment b/298203449 int offset = Math.max((int) Math.ceil(BLUR_FACTOR * size), Math.round(size * (1 - scale) / 2)); // b/211896569: AdaptiveIconDrawable do not work properly for non top-left bounds Loading
iconloaderlib/src/com/android/launcher3/icons/ShadowGenerator.java +2 −1 Original line number Diff line number Diff line Loading @@ -109,7 +109,8 @@ public class ShadowGenerator { scale = (HALF_DISTANCE - BLUR_FACTOR) / (HALF_DISTANCE - minSide); } float bottomSpace = BLUR_FACTOR + KEY_SHADOW_DISTANCE; // We are ignoring KEY_SHADOW_DISTANCE because regular icons ignore this at the moment b/298203449 float bottomSpace = BLUR_FACTOR; if (bounds.bottom < bottomSpace) { scale = Math.min(scale, (HALF_DISTANCE - bottomSpace) / (HALF_DISTANCE - bounds.bottom)); Loading