summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2017-06-15 23:24:47 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-06-15 23:24:48 +0000
commit037fd6d96422ac79534a611ed9c741192182e649 (patch)
tree53e33ffa7706b47327579bf538a464115e54d6e4 /src
parent21e69dc14240198a2193d5a7bb214d53bc660673 (diff)
parent6db41f1c69a6387465f545f42c918e66e751dc84 (diff)
downloadandroid_packages_apps_Trebuchet-037fd6d96422ac79534a611ed9c741192182e649.tar.gz
android_packages_apps_Trebuchet-037fd6d96422ac79534a611ed9c741192182e649.tar.bz2
android_packages_apps_Trebuchet-037fd6d96422ac79534a611ed9c741192182e649.zip
Merge "Fix for clipped promise icon." into ub-launcher3-dorval-polish
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/graphics/PreloadIconDrawable.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/launcher3/graphics/PreloadIconDrawable.java b/src/com/android/launcher3/graphics/PreloadIconDrawable.java
index 22ce0981d..39cd401ba 100644
--- a/src/com/android/launcher3/graphics/PreloadIconDrawable.java
+++ b/src/com/android/launcher3/graphics/PreloadIconDrawable.java
@@ -121,11 +121,11 @@ public class PreloadIconDrawable extends FastBitmapDrawable {
protected void onBoundsChange(Rect bounds) {
super.onBoundsChange(bounds);
mTmpMatrix.setScale(
- (bounds.width() - PROGRESS_WIDTH - 2 * PROGRESS_GAP) / PATH_SIZE,
- (bounds.height() - PROGRESS_WIDTH - 2 * PROGRESS_GAP) / PATH_SIZE);
+ (bounds.width() - 2 * PROGRESS_WIDTH - 2 * PROGRESS_GAP) / PATH_SIZE,
+ (bounds.height() - 2 * PROGRESS_WIDTH - 2 * PROGRESS_GAP) / PATH_SIZE);
mTmpMatrix.postTranslate(
- bounds.left + PROGRESS_WIDTH / 2 + PROGRESS_GAP,
- bounds.top + PROGRESS_WIDTH / 2 + PROGRESS_GAP);
+ bounds.left + PROGRESS_WIDTH + PROGRESS_GAP,
+ bounds.top + PROGRESS_WIDTH + PROGRESS_GAP);
mProgressPath.transform(mTmpMatrix, mScaledTrackPath);
float scale = bounds.width() / PATH_SIZE;