commit | 60bffaf53f76203b634a231fd86dd047c02b8e5b | [log] [tgz] |
---|---|---|
author | Pat Manning <patmanning@google.com> | Fri Oct 01 16:04:36 2021 +0000 |
committer | Pat Manning <patmanning@google.com> | Fri Oct 01 16:04:36 2021 +0000 |
tree | 343e1d7a33d863d7ba786d3401dcaf263689dafe | |
parent | e48d931740c36cfac16ae0bc23db7a72acfa41c7 [diff] |
Set clock hands bounds to scale along with clock icon scaling. Test: manual Fix: 196983278 Change-Id: I435f6f542af26c996802860e6e01a7ce9ed58700
diff --git a/iconloaderlib/src/com/android/launcher3/icons/ClockDrawableWrapper.java b/iconloaderlib/src/com/android/launcher3/icons/ClockDrawableWrapper.java index 5e86fde..d2cbe72 100644 --- a/iconloaderlib/src/com/android/launcher3/icons/ClockDrawableWrapper.java +++ b/iconloaderlib/src/com/android/launcher3/icons/ClockDrawableWrapper.java
@@ -375,6 +375,7 @@ canvas.scale(mInfo.scale, mInfo.scale, bounds.exactCenterX() + mInfo.offset, bounds.exactCenterY() + mInfo.offset); canvas.clipPath(mFullDrawable.getIconMask()); + mForeground.setBounds(bounds); mForeground.draw(canvas); canvas.restoreToCount(saveCount);