summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2018-07-27 22:21:28 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-07-27 22:21:28 +0000
commite7e6d4ac2e4663b04030efb6031207e4c5c9d814 (patch)
tree85fb3d1e238e2ebb26e6d913a0e8274b0e601e6f /src
parenta279b2ea3e06a749fe70df948b3c1ffa0f978b7e (diff)
parentae3cece03e11f1cc29ebc04fdbd9f035fa347107 (diff)
downloadandroid_packages_apps_Trebuchet-e7e6d4ac2e4663b04030efb6031207e4c5c9d814.tar.gz
android_packages_apps_Trebuchet-e7e6d4ac2e4663b04030efb6031207e4c5c9d814.tar.bz2
android_packages_apps_Trebuchet-e7e6d4ac2e4663b04030efb6031207e4c5c9d814.zip
Merge changes from topic "am-368a5e55-b07c-46fa-b16f-5be22a0ce60a" into ub-launcher3-master
* changes: [automerger] Fix gap between notification dots and their shadows am: dfb785afc1 Fix gap between notification dots and their shadows
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/graphics/ShadowGenerator.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/launcher3/graphics/ShadowGenerator.java b/src/com/android/launcher3/graphics/ShadowGenerator.java
index 5fbf502aa..88da853d6 100644
--- a/src/com/android/launcher3/graphics/ShadowGenerator.java
+++ b/src/com/android/launcher3/graphics/ShadowGenerator.java
@@ -126,13 +126,13 @@ public class ShadowGenerator {
}
public Bitmap createPill(int width, int height) {
- radius = height / 2;
+ radius = height / 2f;
- int centerX = Math.round(width / 2 + shadowBlur);
+ int centerX = Math.round(width / 2f + shadowBlur);
int centerY = Math.round(radius + shadowBlur + keyShadowDistance);
int center = Math.max(centerX, centerY);
bounds.set(0, 0, width, height);
- bounds.offsetTo(center - width / 2, center - height / 2);
+ bounds.offsetTo(center - width / 2f, center - height / 2f);
int size = center * 2;
Bitmap result = Bitmap.createBitmap(size, size, Config.ARGB_8888);