Merge "Update Chooser shadows to match Launcher." into tm-dev am: bf068a0636
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17869613 Change-Id: Ie6c9490cf6a698eaa9324e7fc0a45f2b0e51d2e2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -71,7 +71,7 @@ public class SimpleIconFactory {
|
|||||||
new SynchronizedPool<>(Runtime.getRuntime().availableProcessors());
|
new SynchronizedPool<>(Runtime.getRuntime().availableProcessors());
|
||||||
|
|
||||||
private static final int DEFAULT_WRAPPER_BACKGROUND = Color.WHITE;
|
private static final int DEFAULT_WRAPPER_BACKGROUND = Color.WHITE;
|
||||||
private static final float BLUR_FACTOR = 0.5f / 48;
|
private static final float BLUR_FACTOR = 1.5f / 48;
|
||||||
|
|
||||||
private Context mContext;
|
private Context mContext;
|
||||||
private Canvas mCanvas;
|
private Canvas mCanvas;
|
||||||
@@ -650,8 +650,8 @@ public class SimpleIconFactory {
|
|||||||
/* Shadow generator block */
|
/* Shadow generator block */
|
||||||
|
|
||||||
private static final float KEY_SHADOW_DISTANCE = 1f / 48;
|
private static final float KEY_SHADOW_DISTANCE = 1f / 48;
|
||||||
private static final int KEY_SHADOW_ALPHA = 61;
|
private static final int KEY_SHADOW_ALPHA = 10;
|
||||||
private static final int AMBIENT_SHADOW_ALPHA = 30;
|
private static final int AMBIENT_SHADOW_ALPHA = 7;
|
||||||
|
|
||||||
private Paint mBlurPaint = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.FILTER_BITMAP_FLAG);
|
private Paint mBlurPaint = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.FILTER_BITMAP_FLAG);
|
||||||
private Paint mDrawPaint = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.FILTER_BITMAP_FLAG);
|
private Paint mDrawPaint = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.FILTER_BITMAP_FLAG);
|
||||||
|
|||||||
Reference in New Issue
Block a user