From c2968da3728006942cc105dc562ad04d907dfaea Mon Sep 17 00:00:00 2001 From: Jon Miranda Date: Thu, 16 May 2019 14:21:28 -0700 Subject: [PATCH] Fix bug where FloatingIconView did not use IconShape normalization scale. This fix allows for a clean tradeoff between the FIV and the original icon in all icon shapes. Bug: 130292844 Change-Id: Ief2eec2673161e0f9d32d8710713a1f01880040d --- src/com/android/launcher3/views/FloatingIconView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/launcher3/views/FloatingIconView.java b/src/com/android/launcher3/views/FloatingIconView.java index cb7bba73cb..e5c75c3fca 100644 --- a/src/com/android/launcher3/views/FloatingIconView.java +++ b/src/com/android/launcher3/views/FloatingIconView.java @@ -441,7 +441,8 @@ public class FloatingIconView extends View implements } if (!isFolderIcon) { - mStartRevealRect.inset(mBlurSizeOutline, mBlurSizeOutline); + Utilities.scaleRectAboutCenter(mStartRevealRect, + IconShape.getNormalizationScale()); } float aspectRatio = mLauncher.getDeviceProfile().aspectRatio;