diff options
| author | TreeHugger Robot <treehugger-gerrit@google.com> | 2021-06-04 18:29:29 +0000 |
|---|---|---|
| committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-06-04 18:29:29 +0000 |
| commit | 426abeee6d8790605a854d6cb0c7811c7fa44f4f (patch) | |
| tree | abdf80baa4f6458c37b499819025ae7141e76f43 | |
| parent | 0b0f4e9d9821d76ab3827f914ec35fd36a6c9b0e (diff) | |
| parent | 153c35c723469f28972cbb36003546d35666263a (diff) | |
Merge "Enable and tune shadow generator." into sc-dev am: 153c35c723
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/libs/systemui/+/14727293
Change-Id: I5619e965eecf2b0d68f8d51c6bd4c1c0c6580f2d
| -rw-r--r-- | iconloaderlib/src/com/android/launcher3/icons/ShadowGenerator.java | 8 | ||||
| -rw-r--r-- | iconloaderlib/src/com/android/launcher3/icons/cache/BaseIconCache.java | 2 |
2 files changed, 5 insertions, 5 deletions
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 @@ import android.graphics.RectF; */ 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 @@ public abstract class BaseIconCache { * 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"; |
