summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndroid Build Merger (Role) <noreply-android-build-merger@google.com>2018-07-22 20:50:13 +0000
committerAndroid Build Merger (Role) <noreply-android-build-merger@google.com>2018-07-22 20:50:13 +0000
commitae3cece03e11f1cc29ebc04fdbd9f035fa347107 (patch)
treeb90b36b815dde90c2885bd1b248319903618eeb0 /src
parent82c114ca9ca212e8257d34860b42f4a021a63213 (diff)
parentdfb785afc168f51d082382eca5a1d97e3f733734 (diff)
downloadandroid_packages_apps_Trebuchet-ae3cece03e11f1cc29ebc04fdbd9f035fa347107.tar.gz
android_packages_apps_Trebuchet-ae3cece03e11f1cc29ebc04fdbd9f035fa347107.tar.bz2
android_packages_apps_Trebuchet-ae3cece03e11f1cc29ebc04fdbd9f035fa347107.zip
[automerger] Fix gap between notification dots and their shadows am: dfb785afc1
Change-Id: I9856c789e5d2f79690e69209145ee1a36a6cfec4
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);