summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMario Bertschler <bmario@google.com>2017-06-15 11:02:39 -0700
committerMario Bertschler <bmario@google.com>2017-06-15 11:17:33 -0700
commit6db41f1c69a6387465f545f42c918e66e751dc84 (patch)
treee88c2c512065c5cdc487edf8a1a01033c9d5b494 /src
parentf6eb789016fdf56ca6721b4ebed37d2df0a33dfa (diff)
downloadandroid_packages_apps_Trebuchet-6db41f1c69a6387465f545f42c918e66e751dc84.tar.gz
android_packages_apps_Trebuchet-6db41f1c69a6387465f545f42c918e66e751dc84.tar.bz2
android_packages_apps_Trebuchet-6db41f1c69a6387465f545f42c918e66e751dc84.zip
Fix for clipped promise icon.
Bug: 62544596 Change-Id: Iadbd8b27244b6d2ff3f9f0167f90b2a260687bc3
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;