Enable and tune shadow generator.
Bug: 175329686
Test: manual
Change-Id: Id4749f755aaf176b7fad154cb67ef5cac8328f67
diff --git a/iconloaderlib/src/com/android/launcher3/icons/ShadowGenerator.java b/iconloaderlib/src/com/android/launcher3/icons/ShadowGenerator.java
index ccaebe7..e24f353 100644
--- a/iconloaderlib/src/com/android/launcher3/icons/ShadowGenerator.java
+++ b/iconloaderlib/src/com/android/launcher3/icons/ShadowGenerator.java
@@ -33,16 +33,16 @@
*/
public class ShadowGenerator {
- public static final boolean ENABLE_SHADOWS = false;
+ public static final boolean ENABLE_SHADOWS = true;
- public static final float BLUR_FACTOR = 0.5f/48;
+ public static final float BLUR_FACTOR = 1.5f/48;
// Percent of actual icon size
public static final float KEY_SHADOW_DISTANCE = 1f/48;
- private static final int KEY_SHADOW_ALPHA = 61;
+ private static final int KEY_SHADOW_ALPHA = 10;
// Percent of actual icon size
private static final float HALF_DISTANCE = 0.5f;
- private static final int AMBIENT_SHADOW_ALPHA = 30;
+ private static final int AMBIENT_SHADOW_ALPHA = 7;
private final int mIconSize;
diff --git a/iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java b/iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java
index c948eba..cb39490 100644
--- a/iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java
+++ b/iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java
@@ -510,7 +510,7 @@
* Cache class to store the actual entries on disk
*/
public static final class IconDB extends SQLiteCacheHelper {
- private static final int RELEASE_VERSION = 29;
+ private static final int RELEASE_VERSION = 30;
public static final String TABLE_NAME = "icons";
public static final String COLUMN_ROWID = "rowid";