Adding utility method to get adaptive icon scale

Change-Id: I5ff190c3b794bb13309375782ccd420e85b59091
This commit is contained in:
Sunny Goyal committed 2019-05-03 21:31:46 -07:00
1 parent 1bdb0f4046
commit 905262c1a7
11 files changed
+142 -109

No files matched your search

@@ -16,7 +16,7 @@
package com.android.launcher3.folder;
import static com.android.launcher3.folder.FolderShape.getShape;
import static com.android.launcher3.graphics.IconShape.getShape;
import static com.android.launcher3.icons.GraphicsUtils.setColorAlphaBound;
import android.animation.Animator;
@@ -311,7 +311,7 @@ public class PreviewBackground {
public Path getClipPath() {
mPath.reset();
getShape().addShape(mPath, getOffsetX(), getOffsetY(), getScaledRadius());
getShape().addToPath(mPath, getOffsetX(), getOffsetY(), getScaledRadius());
return mPath;
}